]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Makefile now runs under bsdmake and gnumake again
authorerdgeist <>
Mon, 1 Oct 2007 00:27:26 +0000 (00:27 +0000)
committererdgeist <>
Mon, 1 Oct 2007 00:27:26 +0000 (00:27 +0000)
Makefile

index 2411cb4ff0c336b11d6d648837c863909315b00f..9858fff2c297f005470afc5ea54e66d6049aca45 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
 CC?=gcc
 FEATURES=#-DWANT_CLOSED_TRACKER -DWANT_IP_FROM_QUERY_STRING -D_DEBUG_HTTPERROR
+FEATURES=-DWANT_IP_FROM_QUERY_STRING
 OPTS_debug=-g -ggdb #-pg # -fprofile-arcs -ftest-coverage
 OPTS_production=-s -Os
 CFLAGS+=-I../libowfat -Wall -pipe -Wextra #-pedantic #-ansi
@@ -14,24 +15,10 @@ all: $(BINARY) $(BINARY).debug
 CFLAGS_production = $(CFLAGS) $(OPTS_production) $(FEATURES)
 CFLAGS_debug = $(CFLAGS) $(OPTS_debug) $(FEATURES)
 
-OBJECTS_debug = $(SOURCES:%.c=%.debug.o)
-OBJECTS_production = $(SOURCES:%.c=%.production.o)
-
-$(OBJECTS_debug) $(OBJECTS_production): $(HEADERS)
-
-%.production.o : CFLAGS := $(CFLAGS_production)
-%.debug.o : CFLAGS := $(CFLAGS_debug)
-
-%.production.o : %.c 
-       $(COMPILE.c) $(OUTPUT_OPTION) $<
-%.debug.o : %.c 
-       $(COMPILE.c) $(OUTPUT_OPTION) $<
-
 $(BINARY): $(OBJECTS_production)
-       $(CC) $^ -o $@ $(CFLAGS_production) $(LDFLAGS)
+       $(CC) $? -o $@ $(SOURCES) $(CFLAGS_production) $(LDFLAGS)
 $(BINARY).debug: $(OBJECTS_debug)
-       $(CC) $^ -o $@ $(CFLAGS_debug) $(LDFLAGS)
- clean:
-       rm -rf opentracker *.o *~
+       $(CC) $? -o $@ $(SOURCES) $(CFLAGS_debug) $(LDFLAGS)
  
+clean:
+       rm -rf opentracker opentracker.debug *.o *~