Fix: Don't override user variables within the build system
[urcu.git] / doc / examples / Makefile.examples.template
CommitLineData
f37f1d93
MD
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
9a79c612 14LOCAL_CFLAGS := -g -O2 -Wall
f37f1d93
MD
15
16all: $(BINARY)
17
18$(BINARY): $(OBJECTS)
9a79c612 19 $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
bda791c1 20 -o $@ $(OBJECTS) $(LIBS)
f37f1d93 21
f7e7a1b8 22$(OBJECTS): $(SOURCES) $(DEPS)
9a79c612 23 $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) \
f37f1d93
MD
24 -c -o $@ $(SOURCES)
25
26.PHONY: clean
27clean:
28 rm -f *.o $(BINARY)
This page took 0.028541 seconds and 4 git commands to generate.