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