Use -MM instead of -M for generating dependencies
authorhpa <hpa>
Thu, 30 Jan 2003 20:04:26 +0000 (20:04 +0000)
committerhpa <hpa>
Thu, 30 Jan 2003 20:04:26 +0000 (20:04 +0000)
Makefile

index f0b689e..e04f219 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 ## -----------------------------------------------------------------------
 ##  $Id$
 ##
-##   Copyright 1998-2001 H. Peter Anvin - All Rights Reserved
+##   Copyright 1998-2003 H. Peter Anvin - All Rights Reserved
 ##
 ##   This program is free software; you can redistribute it and/or modify
 ##   it under the terms of the GNU General Public License as published by
@@ -187,7 +187,7 @@ spotless: local-clean dist local-spotless
 
 .depend:
        rm -f .depend
-       for csrc in $(CSRC) ; do $(CC) $(INCLUDE) -M $$csrc >> .depend ; done
+       for csrc in $(CSRC) ; do $(CC) $(INCLUDE) -MM $$csrc >> .depend ; done
        for nsrc in $(NASMSRC) ; do $(NASM) -DDEPEND $(NINCLUDE) -o `echo $$nsrc | sed -e 's/\.asm/\.bin/'` -M $$nsrc >> .depend ; done
 
 local-depend: