patch-src_Makefile_sub_in 643 B

123456789101112131415161718192021222324252627
  1. $OpenBSD: patch-src_Makefile_sub_in,v 1.1 2017/04/27 20:13:36 naddy Exp $
  2. --- src/Makefile.sub.in.orig Thu May 5 16:54:30 2005
  3. +++ src/Makefile.sub.in Thu Apr 27 22:09:46 2017
  4. @@ -5,7 +5,8 @@ SHELL=@SHELL@
  5. CC=@CC@
  6. LD=@LD@
  7. -CFLAGS=@CFLAGS@ -I..
  8. +CFLAGS=@CFLAGS@
  9. +CPPFLAGS=@CPPFLAGS@ -I..
  10. OBJEXT=@OBJEXT@
  11. SOURCES=$(shell ls -1 *.c 2>/dev/null)
  12. @@ -33,10 +34,10 @@ endif
  13. .PHONY: depend
  14. depend:
  15. - $(CC) $(CFLAGS) -MM $(SOURCES) >.dependencies
  16. + $(CC) $(CPPFLAGS) -MM $(SOURCES) >.dependencies
  17. .dependencies: $(SOURCES) $(HEADERS)
  18. - $(CC) $(CFLAGS) -MM $(SOURCES) >$@
  19. + $(CC) $(CPPFLAGS) -MM $(SOURCES) >$@
  20. .PHONY: clean
  21. clean: