]> granicus.if.org Git - pdns/commitdiff
fix Makefile-recursor so it doesn't ignore LDFLAGS and others
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Fri, 10 May 2013 15:41:11 +0000 (17:41 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Fri, 10 May 2013 15:41:11 +0000 (17:41 +0200)
pdns/Makefile-recursor

index 0eeb26790d3a757374ae025bf6132ff4d9dc66f7..23af429be28d4e3516cda1ef17a76b97ff0f7bf0 100644 (file)
@@ -28,19 +28,6 @@ REC_CONTROL_OBJECTS=rec_channel.o rec_control.o arguments.o misc.o \
 # what we need 
 all: message version_generated.h pdns_recursor rec_control
 
-# Version
-build_date=$(shell LC_TIME=C date '+%Y%m%d%H%M%S')
-build_host=$(shell id -u -n)@$(shell hostname -f)
-.PHONY: version_generated.h
-version_generated.h:
-       echo '#ifndef VERSION_GENERATED_H' > $@
-       echo '#define VERSION_GENERATED_H' >> $@
-       echo '#include "config.h"' >> $@
-       echo '#define PDNS_VERSION VERSION' >> $@
-       echo '#define BUILD_DATE "$(build_date)"' >> $@
-       echo '#define BUILD_HOST "$(build_host)"' >> $@
-       echo '#endif //!VERSION_GENERATED_H' >> $@
-
 # OS specific instructions
 -include sysdeps/$(shell uname).inc
 
@@ -66,6 +53,20 @@ endif
 
 LDFLAGS += $(PROFILEFLAGS) $(STATICFLAGS)
 
+# Version
+build_date=$(shell LC_TIME=C date '+%Y%m%d%H%M%S')
+build_host=$(shell id -u -n)@$(shell hostname -f)
+
+.PHONY: version_generated.h
+version_generated.h:
+       echo '#ifndef VERSION_GENERATED_H' > $@
+       echo '#define VERSION_GENERATED_H' >> $@
+       echo '#include "config.h"' >> $@
+       echo '#define PDNS_VERSION VERSION' >> $@
+       echo '#define BUILD_DATE "$(build_date)"' >> $@
+       echo '#define BUILD_HOST "$(build_host)"' >> $@
+       echo '#endif //!VERSION_GENERATED_H' >> $@
+
 message: 
        @echo
        @echo PLEASE READ: If you get an error mentioning \#include '<boost/something.hpp>', please read README