diff options
author | Haru <haru@dotalux.com> | 2014-05-24 00:38:25 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-05-25 17:13:24 +0200 |
commit | b7373b6de5b41a4b420741da9ebf0570e36c11c7 (patch) | |
tree | 0058b108f2df1745b86cbadfb48fea9fa0aad4bf /src/tool/Makefile.in | |
parent | 9089ea1e9998663f0573abca89ed542f19418b11 (diff) | |
download | hercules-b7373b6de5b41a4b420741da9ebf0570e36c11c7.tar.gz hercules-b7373b6de5b41a4b420741da9ebf0570e36c11c7.tar.bz2 hercules-b7373b6de5b41a4b420741da9ebf0570e36c11c7.tar.xz hercules-b7373b6de5b41a4b420741da9ebf0570e36c11c7.zip |
Improved CFLAGS/CPPFLAGS handling
- Language extensions, such as _GNU_SOURCE are now enabled through
CPPFLAGS by the configure script, rather than within the source code.
- Moved some configure-time CFLAGS to CPPFLAGS, where appropriate.
- Fixes bugreport:8211, thanks to Neoth
http://hercules.ws/board/tracker/issue-8211-compiling-warning-in-linux
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/tool/Makefile.in')
-rw-r--r-- | src/tool/Makefile.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tool/Makefile.in b/src/tool/Makefile.in index 07b03e334..127d3841b 100644 --- a/src/tool/Makefile.in +++ b/src/tool/Makefile.in @@ -1,6 +1,8 @@ # Copyright (c) Hercules Dev Team, licensed under GNU GPL. # See the LICENSE file +# @configure_input@ + CONFIG_D = ../config CONFIG_H = $(wildcard $(CONFIG_D)/*.h) $(wildcard $(CONFIG_D)/*/*.h) @@ -68,7 +70,7 @@ obj_all: obj_all/%.o: %.c $(MAPCACHE_H) $(COMMON_H) $(CONFIG_H) $(LIBCONFIG_H) | obj_all @echo " CC $<" - @$(CC) @CFLAGS@ $(LIBCONFIG_INCLUDE) @CPPFLAGS@ -c $(OUTPUT_OPTION) $< + @$(CC) @CFLAGS@ @DEFS@ $(LIBCONFIG_INCLUDE) @CPPFLAGS@ -c $(OUTPUT_OPTION) $< # missing common object files $(COMMON_D)/obj_all/common_mini.a: |