X-Git-Url: http://git.lttng.org/?p=userspace-rcu.git;a=blobdiff_plain;f=doc%2Fexamples%2FMakefile.examples.template;h=4a0379ad88e82bbf3165e12a8c030743f45c0feb;hp=cb0275dd0500d55ce318a22e2db9b43411a42e86;hb=3343c545bbc5154d42dd37cd3ae869ef97555e00;hpb=f37f1d93b55ca5f03761a840a8736613eb04f90b diff --git a/doc/examples/Makefile.examples.template b/doc/examples/Makefile.examples.template index cb0275d..4a0379a 100644 --- a/doc/examples/Makefile.examples.template +++ b/doc/examples/Makefile.examples.template @@ -11,17 +11,18 @@ # # This makefile is purposefully kept simple to support GNU and BSD make. +ifndef CC CC = gcc -LIBS = -lurcu +endif CFLAGS = -g -O2 -Wall all: $(BINARY) $(BINARY): $(OBJECTS) $(CC) $(CFLAGS) $(LDFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \ - $(LIBS) -o $@ $(OBJECTS) + -o $@ $(OBJECTS) $(LIBS) -$(OBJECTS): $(SOURCES) +$(OBJECTS): $(SOURCES) $(DEPS) $(CC) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(AM_CFLAGS) \ -c -o $@ $(SOURCES)