X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=doc%2Fexamples%2Frcu-flavor-qsbr%2FMakefile;fp=doc%2Fexamples%2Frcu-flavor-qsbr%2FMakefile;h=b91d205096c78674fc34f826fd69a662d18ab07c;hp=0000000000000000000000000000000000000000;hb=dfee93b119a3a18937ee12121be5977bd41379d3;hpb=828cd6e8c4906d279dc714bc60d61a0c50df4e26 diff --git a/doc/examples/rcu-flavor-qsbr/Makefile b/doc/examples/rcu-flavor-qsbr/Makefile new file mode 100644 index 0000000..b91d205 --- /dev/null +++ b/doc/examples/rcu-flavor-qsbr/Makefile @@ -0,0 +1,31 @@ +# 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-qsbr +CFLAGS = -g -O2 -Wall +OBJECTS = rcu-flavor-qsbr.o + +all: rcu-flavor-qsbr + +rcu-flavor-qsbr: $(OBJECTS) + $(CC) $(CFLAGS) $(LDFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \ + $(LIBS) -o $@ $(OBJECTS) + +rcu-flavor-qsbr.o: rcu-flavor-qsbr.c + $(CC) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(AM_CFLAGS) \ + -c -o $@ $< + +.PHONY: clean +clean: + rm -f *.o rcu-flavor-qsbr