X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=doc%2Fexamples%2FMakefile.examples.template;h=badecffb220699e2934bde72175965ad237e4bc6;hb=d14301c29dfc8761d54c4a289416d67606682675;hp=cb0275dd0500d55ce318a22e2db9b43411a42e86;hpb=f37f1d93b55ca5f03761a840a8736613eb04f90b;p=urcu.git diff --git a/doc/examples/Makefile.examples.template b/doc/examples/Makefile.examples.template index cb0275d..badecff 100644 --- a/doc/examples/Makefile.examples.template +++ b/doc/examples/Makefile.examples.template @@ -12,7 +12,6 @@ # This makefile is purposefully kept simple to support GNU and BSD make. CC = gcc -LIBS = -lurcu CFLAGS = -g -O2 -Wall all: $(BINARY) @@ -21,7 +20,7 @@ $(BINARY): $(OBJECTS) $(CC) $(CFLAGS) $(LDFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \ $(LIBS) -o $@ $(OBJECTS) -$(OBJECTS): $(SOURCES) +$(OBJECTS): $(SOURCES) $(DEPS) $(CC) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(AM_CFLAGS) \ -c -o $@ $(SOURCES)