summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bd757c1)
raw | patch | inline | side by side (parent: bd757c1)
author | Jonathan Nieder <jrnieder@gmail.com> | |
Wed, 6 Jan 2010 06:37:59 +0000 (00:37 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 6 Jan 2010 06:40:58 +0000 (22:40 -0800) |
The %.o: %.S pattern rule should depend on GIT-CFLAGS to avoid
trouble when ALL_CFLAGS changes.
The pattern only applies to one file (ppc/sha1ppc.S) and that
file does not use any #ifdefs, so leaving the dependency out is
probably harmless. Nevertheless, it is safer to include the
dependency in case future code's behavior does depend on the
build flags.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trouble when ALL_CFLAGS changes.
The pattern only applies to one file (ppc/sha1ppc.S) and that
file does not use any #ifdefs, so leaving the dependency out is
probably harmless. Nevertheless, it is safer to include the
dependency in case future code's behavior does depend on the
build flags.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index c11719c277de97d48c21f1207a2e9bc24f07ebad..015bfabb9cb2b47ffb5306691fefc73fbd2eb09f 100644 (file)
--- a/Makefile
+++ b/Makefile
$(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) $<
%.s: %.c GIT-CFLAGS
$(QUIET_CC)$(CC) -S $(ALL_CFLAGS) $<
-%.o: %.S
+%.o: %.S GIT-CFLAGS
$(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) $<
exec_cmd.o: exec_cmd.c GIT-CFLAGS