]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - Makefile.real
build: Avoid excessive dep generation on Makefile changes.
[paraslash.git] / Makefile.real
index 2b245dae188d6188c61f2b59aae0d2eefb20e841..58761a7bf24e1121894920d65e18b2bcca65fd88 100644 (file)
@@ -97,24 +97,24 @@ CFLAGS += -Wmissing-noreturn
 CFLAGS += -Wbad-function-cast
 CFLAGS += -fno-strict-aliasing
 
-ifeq ($(uname_s),Linux)
-       CFLAGS += -fdata-sections -ffunction-sections
-       CFLAGS += -Wstrict-prototypes
-       CFLAGS += -Wshadow
-       # causes warnings on *BSD for the feature test macros
-       CFLAGS += -Wunused-macros
-       LDFLAGS += -Wl,--gc-sections
-endif
-
 STRICT_CFLAGS = $(CFLAGS)
-STRICT_CFLAGS += -g -Wunused -Wundef -W
+STRICT_CFLAGS += -g -Wundef -W
 STRICT_CFLAGS += -Wredundant-decls
-STRICT_CFLAGS += -Wall -Wno-sign-compare -Wno-unknown-pragmas
-STRICT_CFLAGS += -Wformat-security
+STRICT_CFLAGS += -Wno-sign-compare -Wno-unknown-pragmas
+STRICT_CFLAGS += -Wformat -Wformat-security
 STRICT_CFLAGS += -Wmissing-format-attribute
 
 LDFLAGS += $(clock_gettime_ldflags)
 
+ifeq ($(uname_s),Linux)
+       # these cause warnings on *BSD
+       STRICT_CFLAGS += -fdata-sections -ffunction-sections
+       STRICT_CFLAGS += -Wstrict-prototypes
+       STRICT_CFLAGS += -Wshadow
+       STRICT_CFLAGS += -Wunused -Wall
+       LDFLAGS += -Wl,--gc-sections
+endif
+
 # To put more focus on warnings, be less verbose as default
 # Use 'make V=1' to see the full commands
 ifeq ("$(origin V)", "command line")
@@ -167,7 +167,7 @@ $(man_dir)/para_%.1: $(ggo_dir)/%.ggo man_util.bash | $(man_dir) $(help2man_dir)
 $(hostbin_dir)/error2: error2.c | $(hostbin_dir)
        @[ -z "$(Q)" ] || echo 'HCC $<'
        $(Q) $(HOSTCC) -o $@ $<
-error2.h: $(hostbin_dir)/error2 Makefile
+error2.h: $(hostbin_dir)/error2 config.h
        @[ -z "$(Q)" ] || echo 'ER2 $<'
        @echo "$(object_executable_matrix)" | $< > $@