X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=doc%2Fexamples%2Fdemo%2FMakefile;h=bbc8ccb7e6aae5821acf44236403a9865c195f07;hb=725e63c5194bfdcde0a2a3507aca156ba36cf49f;hp=7e9746fa181c3a9d9585f8cae38b8f077b9b59f9;hpb=08a10b1bf766665533d9d65d7cb15f8a3df984fb;p=lttng-ust.git diff --git a/doc/examples/demo/Makefile b/doc/examples/demo/Makefile index 7e9746fa..bbc8ccb7 100644 --- a/doc/examples/demo/Makefile +++ b/doc/examples/demo/Makefile @@ -37,25 +37,25 @@ endif all: demo lttng-ust-provider-ust-tests-demo.so lttng-ust-provider-ust-tests-demo3.so tp.o: tp.c ust_tests_demo.h - $(CC) $(CFLAGS) -fpic -c -o $@ $< + $(CC) $(CPPFLAGS) $(CFLAGS) -fpic -c -o $@ $< tp2.o: tp2.c ust_tests_demo2.h - $(CC) $(CFLAGS) -fpic -c -o $@ $< + $(CC) $(CPPFLAGS) $(CFLAGS) -fpic -c -o $@ $< lttng-ust-provider-ust-tests-demo.so: tp.o tp2.o - $(CC) -shared -o $@ $(LDFLAGS) -llttng-ust $+ + $(CC) -shared -o $@ $(LDFLAGS) -llttng-ust $^ tp3.o: tp3.c ust_tests_demo3.h - $(CC) $(CFLAGS) -fpic -c -o $@ $< + $(CC) $(CPPFLAGS) $(CFLAGS) -fpic -c -o $@ $< lttng-ust-provider-ust-tests-demo3.so: tp3.o - $(CC) -shared -o $@ $(LDFLAGS) -llttng-ust $+ + $(CC) -shared -o $@ $(LDFLAGS) -llttng-ust $^ demo.o: demo.c - $(CC) $(CFLAGS) -c -o $@ $< + $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< demo: demo.o - $(CC) -o $@ $(LIBS) $+ + $(CC) -o $@ $^ $(LIBS) .PHONY: clean clean: