Debian Codegraph @

examples/ec/Makefile

raw
1 # Build examples from installed lib
2
3 include Makefile.am
4
5 incdir = $(shell pkg-config --variable=includedir libisal)
6
7 CFLAGS += -include $(incdir)/isa-l.h # Add standard header
8 CFLAGS += -I $(incdir)/isa-l # Add path to remove error
9 LDFLAGS = $(shell pkg-config --libs libisal)
10
11 progs = $(notdir $(examples))
12
13 ex: $(progs)
14 run: $(addsuffix .run,$(progs))
15
16 $(progs): % : %.c
17 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
18
19 $(addsuffix .run,$(progs)): %.run : %
20 ./$<
21 @echo Completed run: $<
22
23 clean:
24 $(RM) $(progs)