X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=doc%2Fexamples%2Fgen-tp%2FMakefile;fp=doc%2Fexamples%2Fgen-tp%2FMakefile;h=bc979d97b89a2ed0b20b657fd3eeed8583fe76c3;hb=acc6a83584f46fea81e4554df137cfda4434a1e4;hp=e5e3cd378a08459987256e9535ca56445fb331a9;hpb=c84d9878cfa85dd3ce15d89cf1c1e67bc6fcf807;p=lttng-ust.git diff --git a/doc/examples/gen-tp/Makefile b/doc/examples/gen-tp/Makefile index e5e3cd37..bc979d97 100644 --- a/doc/examples/gen-tp/Makefile +++ b/doc/examples/gen-tp/Makefile @@ -40,6 +40,9 @@ sample.o: sample.c sample_tracepoint.h # This rule generate .o only and depends on rules for generating # the .h and .c %.o: %.tp %.c %.h + CPPFLAGS="$(CPPFLAGS) $(AM_CPPFLAGS)" \ + CFLAGS="$(CFLAGS) $(AM_CFLAGS)" \ + LDFLAGS="$(LDFLAGS) $(AM_LDFLAGS)" \ $(LTTNG_GEN_TP_PATH)lttng-gen-tp -o $@ $< # The following rule can be used to generate all files instead of having one