patch-Makefile 898 B

123456789101112131415161718192021222324252627282930313233343536
  1. $OpenBSD: patch-Makefile,v 1.2 2017/05/05 11:43:47 espie Exp $
  2. Index: Makefile
  3. --- Makefile.orig
  4. +++ Makefile
  5. @@ -41,10 +41,10 @@ else
  6. ifdef USE_SGICC
  7. CC := cc
  8. else
  9. -CC := gcc
  10. +CC ?= gcc
  11. endif
  12. endif
  13. -AR := ar
  14. +AR ?= ar
  15. # Configuration.
  16. @@ -226,13 +226,13 @@ DBGFLAGS := -n32 -g3 -DDEBUGMODE=1
  17. else
  18. WFLAGS := -Wall -W -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -DDUMB_DECLARE_DEPRECATED
  19. WFLAGS_ALLEGRO := -Wno-missing-declarations
  20. -OFLAGS := -O2 -ffast-math -fomit-frame-pointer
  21. -DBGFLAGS := -DDEBUGMODE=1 -g3
  22. +OFLAGS := -O2 -ffast-math -fomit-frame-pointer -fgnu89-inline
  23. +DBGFLAGS := -DDEBUGMODE=1 -g3 -fgnu89-inline
  24. endif
  25. endif
  26. -CFLAGS_RELEASE := -Iinclude $(WFLAGS) $(OFLAGS)
  27. -CFLAGS_DEBUG := -Iinclude $(WFLAGS) $(DBGFLAGS)
  28. +CFLAGS_RELEASE := -Iinclude ${CFLAGS} $(WFLAGS) $(OFLAGS)
  29. +CFLAGS_DEBUG := -Iinclude ${CFLAGS} $(WFLAGS) $(DBGFLAGS)
  30. LDFLAGS := -s