]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Two more bugs in Makefile. Maybe I learn it one day
authorerdgeist <>
Mon, 1 Oct 2007 00:31:59 +0000 (00:31 +0000)
committererdgeist <>
Mon, 1 Oct 2007 00:31:59 +0000 (00:31 +0000)
Makefile

index 38eb6644107114d821e5b481d2a6f1c57e43b300..11e4c50dfb55e661c305e0cb982376e50a90b69f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,10 +14,10 @@ all: $(BINARY) $(BINARY).debug
 CFLAGS_production = $(CFLAGS) $(OPTS_production) $(FEATURES)
 CFLAGS_debug = $(CFLAGS) $(OPTS_debug) $(FEATURES)
 
-$(BINARY): $(OBJECTS_production)
-       $(CC) $? -o $@ $(SOURCES) $(CFLAGS_production) $(LDFLAGS)
-$(BINARY).debug: $(OBJECTS_debug)
-       $(CC) $? -o $@ $(SOURCES) $(CFLAGS_debug) $(LDFLAGS)
+$(BINARY): $(SOURCES) $(HEADERS)
+       $(CC) -o $@ $(SOURCES) $(CFLAGS_production) $(LDFLAGS)
+$(BINARY).debug: $(SOURCES) $(HEADERS)
+       $(CC) -o $@ $(SOURCES) $(CFLAGS_debug) $(LDFLAGS)
  
 clean:
        rm -rf opentracker opentracker.debug *.o *~