Fix -Walloc-size
[urcu.git] / doc / examples / Makefile.examples.template
CommitLineData
1c87adb3 1# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
f37f1d93 2#
1c87adb3
MJ
3# SPDX-License-Identifier: MIT
4
f37f1d93
MD
5# This makefile is purposefully kept simple to support GNU and BSD make.
6
9a79c612 7LOCAL_CFLAGS := -g -O2 -Wall
dbfa8879 8AM_V_P := :
f37f1d93
MD
9
10all: $(BINARY)
11
12$(BINARY): $(OBJECTS)
48e2efad
MJ
13 @verbose="$(AM_V_P)"; if [ "x$$verbose" = "x" ]; then verbose=":"; fi; \
14 if $$verbose; then set -x; else echo " CCLD $@"; fi; \
dbfa8879 15 $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
bda791c1 16 -o $@ $(OBJECTS) $(LIBS)
f37f1d93 17
f7e7a1b8 18$(OBJECTS): $(SOURCES) $(DEPS)
48e2efad
MJ
19 @verbose="$(AM_V_P)"; if [ "x$$verbose" = "x" ]; then verbose=":"; fi; \
20 if $$verbose; then set -x; else echo " CC $@"; fi; \
dbfa8879 21 $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) \
f37f1d93
MD
22 -c -o $@ $(SOURCES)
23
24.PHONY: clean
25clean:
26 rm -f *.o $(BINARY)
This page took 0.03715 seconds and 4 git commands to generate.