isa-l/examples/crc/Makefile
Greg Tucker 4cbd285861 ex: Add crc combine example for multiple polynomials
Change-Id: I55b6585f768877cffe1cbe16802456c8a12aea28
Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
2023-02-10 15:41:35 -07:00

22 lines
360 B
Makefile

# Build examples from installed lib
examples = crc_combine_example
CFLAGS = -Wall -O2
LDFLAGS = $(shell pkg-config --libs libisal)
progs = $(notdir $(examples))
ex: $(progs)
run: $(addsuffix .run,$(progs))
$(progs): % : %.c
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
$(addsuffix .run,$(progs)): %.run : %
./$<
@echo Completed run: $<
clean:
$(RM) $(progs)