From 871f887d7494d65a50932f9cc920c6c533454531 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 6 Oct 2013 23:17:05 +0000 Subject: Put VERSION into config.h. This makes life easier for downstream maintainers having more than one Makefile, for example DragonFly and FreeBSD. Suggested by Franco Fichtner . --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f9f33742..31a9b240 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ STATIC = -static # Linux requires -pthread to statically link with libdb. #STATIC += -pthread -CFLAGS += -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\"" +CFLAGS += -g -DHAVE_CONFIG_H CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings PREFIX = /usr/local WWWPREFIX = /var/www @@ -390,6 +390,7 @@ config.h: config.h.pre config.h.post rm -f config.log ( cat config.h.pre; \ echo; \ + echo '#define VERSION "$(VERSION)"'; \ if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-fgetln test-fgetln.c >> config.log 2>&1; then \ echo '#define HAVE_FGETLN'; \ rm test-fgetln; \ -- cgit v1.2.3-56-ge451