Makefile: fix location of listing produced by "make subdir/foo.s"
[gitweb.git] / Makefile
index e4f8e0ef08b9f3f4eb5035f20421ee035127fdf2..d03fee7e146f36067773781bd4485a4718070cec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2116,7 +2116,7 @@ $(ASM_OBJ): %.o: %.S GIT-CFLAGS $(missing_dep_dirs)
 endif
 
 %.s: %.c GIT-CFLAGS FORCE
-       $(QUIET_CC)$(CC) -S $(ALL_CFLAGS) $(EXTRA_CPPFLAGS) $<
+       $(QUIET_CC)$(CC) -o $@ -S $(ALL_CFLAGS) $(EXTRA_CPPFLAGS) $<
 
 ifdef USE_COMPUTED_HEADER_DEPENDENCIES
 # Take advantage of gcc's on-the-fly dependency generation