We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f7bf1c commit 628f4e9Copy full SHA for 628f4e9
examples/ec/Makefile
@@ -0,0 +1,24 @@
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)
examples/ec/Makefile.unx
0 commit comments