diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -53,6 +53,7 @@ SOURCES_proxy=proxy.c ot_vector.c ot_mutex.c | |||
53 | OBJECTS = $(SOURCES:%.c=%.o) | 53 | OBJECTS = $(SOURCES:%.c=%.o) |
54 | OBJECTS_debug = $(SOURCES:%.c=%.debug.o) | 54 | OBJECTS_debug = $(SOURCES:%.c=%.debug.o) |
55 | OBJECTS_proxy = $(SOURCES_proxy:%.c=%.o) | 55 | OBJECTS_proxy = $(SOURCES_proxy:%.c=%.o) |
56 | OBJECTS_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) |
69 | proxy: $(OBJECTS_proxy) $(HEADERS) | 70 | proxy: $(OBJECTS_proxy) $(HEADERS) |
70 | $(CC) -o $@ $(OBJECTS_proxy) $(LDFLAGS) | 71 | $(CC) -o $@ $(OBJECTS_proxy) $(CFLAGS_production) $(LDFLAGS) |
72 | proxy.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) |