From: Christian Hofstaedtler Date: Fri, 10 May 2013 15:41:11 +0000 (+0200) Subject: fix Makefile-recursor so it doesn't ignore LDFLAGS and others X-Git-Tag: auth-3.3-rc1~72^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8767d321ad5f9620de0ead7b2970248dafab229a;p=pdns fix Makefile-recursor so it doesn't ignore LDFLAGS and others --- diff --git a/pdns/Makefile-recursor b/pdns/Makefile-recursor index 0eeb26790..23af429be 100644 --- a/pdns/Makefile-recursor +++ b/pdns/Makefile-recursor @@ -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 '', please read README