patch-unix_Makefile.orig 852 B

1234567891011121314151617181920212223242526272829
  1. --- zip30.orig/unix/Makefile 2008-05-07 08:33:56.000000000 +0200
  2. +++ zip30/unix/Makefile 2011-10-19 22:20:07.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. @@ -202,7 +202,7 @@ generic: flags
  20. eval $(MAKE) $(MAKEF) zips `cat flags`
  21. generic_gcc:
  22. - $(MAKE) $(MAKEF) generic CC=gcc CPP="gcc -E"
  23. + $(MAKE) $(MAKEF) generic CPP="gcc -E" CC=$(CC)
  24. # AT&T 6300 PLUS (don't know yet how to allocate 64K bytes):
  25. att6300nodir: