X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=doc%2Fexamples%2FMakefile.examples.template;fp=doc%2Fexamples%2FMakefile.examples.template;h=cb0275dd0500d55ce318a22e2db9b43411a42e86;hp=0000000000000000000000000000000000000000;hb=f37f1d93b55ca5f03761a840a8736613eb04f90b;hpb=db757a4e5c7ecba45a79dc9c15090cb3deb659b5 diff --git a/doc/examples/Makefile.examples.template b/doc/examples/Makefile.examples.template new file mode 100644 index 0000000..cb0275d --- /dev/null +++ b/doc/examples/Makefile.examples.template @@ -0,0 +1,30 @@ +# Copyright (C) 2013 Mathieu Desnoyers +# +# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED +# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. +# +# Permission is hereby granted to use or copy this program for any +# purpose, provided the above notices are retained on all copies. +# Permission to modify the code and to distribute modified code is +# granted, provided the above notices are retained, and a notice that +# the code was modified is included with the above copyright notice. +# +# This makefile is purposefully kept simple to support GNU and BSD make. + +CC = gcc +LIBS = -lurcu +CFLAGS = -g -O2 -Wall + +all: $(BINARY) + +$(BINARY): $(OBJECTS) + $(CC) $(CFLAGS) $(LDFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \ + $(LIBS) -o $@ $(OBJECTS) + +$(OBJECTS): $(SOURCES) + $(CC) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(AM_CFLAGS) \ + -c -o $@ $(SOURCES) + +.PHONY: clean +clean: + rm -f *.o $(BINARY)