Commit | Line | Data |
---|---|---|
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 | 14 | LOCAL_CFLAGS := -g -O2 -Wall |
dbfa8879 | 15 | AM_V_P := : |
f37f1d93 MD |
16 | |
17 | all: $(BINARY) | |
18 | ||
19 | $(BINARY): $(OBJECTS) | |
48e2efad MJ |
20 | @verbose="$(AM_V_P)"; if [ "x$$verbose" = "x" ]; then verbose=":"; fi; \ |
21 | if $$verbose; then set -x; else echo " CCLD $@"; fi; \ | |
dbfa8879 | 22 | $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ |
bda791c1 | 23 | -o $@ $(OBJECTS) $(LIBS) |
f37f1d93 | 24 | |
f7e7a1b8 | 25 | $(OBJECTS): $(SOURCES) $(DEPS) |
48e2efad MJ |
26 | @verbose="$(AM_V_P)"; if [ "x$$verbose" = "x" ]; then verbose=":"; fi; \ |
27 | if $$verbose; then set -x; else echo " CC $@"; fi; \ | |
dbfa8879 | 28 | $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) \ |
f37f1d93 MD |
29 | -c -o $@ $(SOURCES) |
30 | ||
31 | .PHONY: clean | |
32 | clean: | |
33 | rm -f *.o $(BINARY) |