Browse Source

enable proxy.debug target

master
Dirk Engling 11 years ago
parent
commit
dd56b16d0c
  1. 7
      Makefile

7
Makefile

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.67 2010/04/22 21:55:28 erdgeist Exp $
# $Id: Makefile,v 1.68 2010/08/14 01:08:13 erdgeist Exp $
CC?=gcc
@ -53,6 +53,7 @@ SOURCES_proxy=proxy.c ot_vector.c ot_mutex.c
OBJECTS = $(SOURCES:%.c=%.o)
OBJECTS_debug = $(SOURCES:%.c=%.debug.o)
OBJECTS_proxy = $(SOURCES_proxy:%.c=%.o)
OBJECTS_proxy_debug = $(SOURCES_proxy:%.c=%.debug.o)
.SUFFIXES: .debug.o .o .c
@ -67,7 +68,9 @@ $(BINARY): $(OBJECTS) $(HEADERS)
$(BINARY).debug: $(OBJECTS_debug) $(HEADERS)
$(CC) -o $@ $(OBJECTS_debug) $(LDFLAGS)
proxy: $(OBJECTS_proxy) $(HEADERS)
$(CC) -o $@ $(OBJECTS_proxy) $(LDFLAGS)
$(CC) -o $@ $(OBJECTS_proxy) $(CFLAGS_production) $(LDFLAGS)
proxy.debug: $(OBJECTS_proxy_debug) $(HEADERS)
$(CC) -o $@ $(OBJECTS_proxy_debug) $(LDFLAGS)
.c.debug.o : $(HEADERS)
$(CC) -c -o $@ $(CFLAGS_debug) $(<:.debug.o=.c)

Loading…
Cancel
Save