mirror of
https://github.com/intel/isa-l.git
synced 2024-12-12 09:23:50 +01:00
628f4e91ea
Change-Id: I10a51dfe90e0672bb33348de241a5be91c9caa37 Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
25 lines
505 B
Makefile
25 lines
505 B
Makefile
# Build examples from installed lib
|
|
|
|
include Makefile.am
|
|
|
|
incdir = $(shell pkg-config --variable=includedir libisal)
|
|
|
|
CFLAGS += -include $(incdir)/isa-l.h # Add standard header
|
|
CFLAGS += -I $(incdir)/isa-l # Add path to remove error
|
|
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)
|