summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5e91cc1..45b6edf 100644
--- a/Makefile
+++ b/Makefile
@@ -53,6 +53,7 @@ SOURCES_proxy=proxy.c ot_vector.c ot_mutex.c
53OBJECTS = $(SOURCES:%.c=%.o) 53OBJECTS = $(SOURCES:%.c=%.o)
54OBJECTS_debug = $(SOURCES:%.c=%.debug.o) 54OBJECTS_debug = $(SOURCES:%.c=%.debug.o)
55OBJECTS_proxy = $(SOURCES_proxy:%.c=%.o) 55OBJECTS_proxy = $(SOURCES_proxy:%.c=%.o)
56OBJECTS_proxy_debug = $(SOURCES_proxy:%.c=%.debug.o)
56 57
57.SUFFIXES: .debug.o .o .c 58.SUFFIXES: .debug.o .o .c
58 59
@@ -67,7 +68,9 @@ $(BINARY): $(OBJECTS) $(HEADERS)
67$(BINARY).debug: $(OBJECTS_debug) $(HEADERS) 68$(BINARY).debug: $(OBJECTS_debug) $(HEADERS)
68 $(CC) -o $@ $(OBJECTS_debug) $(LDFLAGS) 69 $(CC) -o $@ $(OBJECTS_debug) $(LDFLAGS)
69proxy: $(OBJECTS_proxy) $(HEADERS) 70proxy: $(OBJECTS_proxy) $(HEADERS)
70 $(CC) -o $@ $(OBJECTS_proxy) $(LDFLAGS) 71 $(CC) -o $@ $(OBJECTS_proxy) $(CFLAGS_production) $(LDFLAGS)
72proxy.debug: $(OBJECTS_proxy_debug) $(HEADERS)
73 $(CC) -o $@ $(OBJECTS_proxy_debug) $(LDFLAGS)
71 74
72.c.debug.o : $(HEADERS) 75.c.debug.o : $(HEADERS)
73 $(CC) -c -o $@ $(CFLAGS_debug) $(<:.debug.o=.c) 76 $(CC) -c -o $@ $(CFLAGS_debug) $(<:.debug.o=.c)