Fix examples: add missing CPPFLAGS
[lttng-ust.git] / doc / examples / hello-static-lib / Makefile
index 3da65f042971529bf3d76f0b57cf2b0cdb9222c9..a5bf2df1a6b32fdb5ff5e62f7ce52a5a002b79a5 100644 (file)
@@ -37,13 +37,13 @@ endif
 all: hello
 
 lttng-ust-provider-hello.o: tp.c ust_tests_hello.h
-       $(CC) $(CFLAGS) -c -o $@ $<
+       $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
 
 lttng-ust-provider-hello.a: lttng-ust-provider-hello.o
        ar -rc $@ $^
 
 hello.o: hello.c
-       $(CC) $(CFLAGS) -c -o $@ $<
+       $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
 
 hello: hello.o lttng-ust-provider-hello.a
        $(CC) -o $@ $(LDFLAGS) $(LIBS) $^
This page took 0.024147 seconds and 4 git commands to generate.