mirror of
https://github.com/intel/isa-l.git
synced 2024-12-13 09:52:56 +01:00
4cbd285861
Change-Id: I55b6585f768877cffe1cbe16802456c8a12aea28 Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
22 lines
360 B
Makefile
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)
|