comparison libgaim/win32/global.mak @ 14455:c2c916d4d95c

[gaim-migrate @ 17169] Remove VERSION file from svn, it was only needed there for wingaim and was causing problems elsewhere when it was not overwritten. Parse the version number from the configure.ac file for the wingaim build instead. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 05 Sep 2006 16:13:57 +0000
parents e88aae4f4c40
children 841ce6b110a8
comparison
equal deleted inserted replaced
14454:22cb019456bd 14455:c2c916d4d95c
48 GAIM_GTKGAIM_DLL := $(GAIM_GTK_TOP)/gtkgaim.dll 48 GAIM_GTKGAIM_DLL := $(GAIM_GTK_TOP)/gtkgaim.dll
49 GAIM_EXE := $(GAIM_GTK_TOP)/gaim.exe 49 GAIM_EXE := $(GAIM_GTK_TOP)/gaim.exe
50 GAIM_PORTABLE_EXE := $(GAIM_GTK_TOP)/gaim-portable.exe 50 GAIM_PORTABLE_EXE := $(GAIM_GTK_TOP)/gaim-portable.exe
51 51
52 GCCWARNINGS := -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef 52 GCCWARNINGS := -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef
53 GAIM_VERSION := $(shell cat $(GAIM_TOP)/VERSION) 53
54 # parse the version number from the configure.ac file if it is newer
55 #AC_INIT([gaim], [2.0.0dev], [gaim-devel@lists.sourceforge.net])
56 GAIM_VERSION := $(shell \
57 if [ ! $(GAIM_TOP)/VERSION -nt $(GAIM_TOP)/configure.ac ]; then \
58 awk 'BEGIN {FS="\\] *, *\\["} /^AC_INIT\(.+\)/ {printf("%s",$$2); exit}' \
59 $(GAIM_TOP)/configure.ac > $(GAIM_TOP)/VERSION; \
60 fi; \
61 cat $(GAIM_TOP)/VERSION \
62 )
63
54 DEFINES += -DVERSION=\"$(GAIM_VERSION)\" \ 64 DEFINES += -DVERSION=\"$(GAIM_VERSION)\" \
55 -DHAVE_CONFIG_H 65 -DHAVE_CONFIG_H
56 66
57 # Use -g flag when building debug version of Gaim (including plugins). 67 # Use -g flag when building debug version of Gaim (including plugins).
58 # Use -fnative-struct instead of -mms-bitfields when using mingw 1.1 68 # Use -fnative-struct instead of -mms-bitfields when using mingw 1.1