doc/examples: cds_list_add_rcu
[userspace-rcu.git] / doc / examples / Makefile.examples.template
1 # Copyright (C) 2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
2 #
3 # THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
4 # OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
5 #
6 # Permission is hereby granted to use or copy this program for any
7 # purpose, provided the above notices are retained on all copies.
8 # Permission to modify the code and to distribute modified code is
9 # granted, provided the above notices are retained, and a notice that
10 # the code was modified is included with the above copyright notice.
11 #
12 # This makefile is purposefully kept simple to support GNU and BSD make.
13
14 CC = gcc
15 LIBS = -lurcu
16 CFLAGS = -g -O2 -Wall
17
18 all: $(BINARY)
19
20 $(BINARY): $(OBJECTS)
21 $(CC) $(CFLAGS) $(LDFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
22 $(LIBS) -o $@ $(OBJECTS)
23
24 $(OBJECTS): $(SOURCES)
25 $(CC) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(AM_CFLAGS) \
26 -c -o $@ $(SOURCES)
27
28 .PHONY: clean
29 clean:
30 rm -f *.o $(BINARY)
This page took 0.03076 seconds and 5 git commands to generate.