patch-unix_Makefile 964 B

123456789101112131415161718192021222324252627282930313233
  1. --- zip30.orig/unix/Makefile 2008-05-07 08:33:56.000000000 +0200
  2. +++ zip30/unix/Makefile 2011-10-19 22:21:08.000000000 +0200
  3. @@ -22,7 +22,7 @@ SHELL = /bin/sh
  4. LN = ln -s
  5. # (to use the GNU compiler, change cc to gcc in CC)
  6. -CC = cc
  7. +CC ?= cc
  8. BIND = $(CC)
  9. AS = $(CC) -c
  10. CPP = /lib/cpp
  11. @@ -58,7 +58,7 @@ IZ_OUR_BZIP2_DIR = bzip2
  12. # LFLAGS1 flags after output file spec, before obj file list
  13. # LFLAGS2 flags after obj file list (libraries, etc)
  14. CFLAGS_NOOPT = -I. -DUNIX $(LOCAL_ZIP)
  15. -CFLAGS = -O2 $(CFLAGS_NOOPT)
  16. +CFLAGS ?= -O2 $(CFLAGS_NOOPT)
  17. LFLAGS1 =
  18. LFLAGS2 = -s
  19. @@ -199,10 +199,10 @@ flags: unix/configure
  20. # Generic targets:
  21. generic: flags
  22. - eval $(MAKE) $(MAKEF) zips `cat flags`
  23. + eval $(MAKE) $(MAKEF) zips `cat flags` CC=$(CC)
  24. generic_gcc:
  25. - $(MAKE) $(MAKEF) generic CC=gcc CPP="gcc -E"
  26. + $(MAKE) $(MAKEF) generic CPP="gcc -E" CC=$(CC)
  27. # AT&T 6300 PLUS (don't know yet how to allocate 64K bytes):
  28. att6300nodir: