home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Amiga / Workbench / Archivers / PPCUnTGZ.lha / PPCUnTGZ / makefile.w32 < prev    next >
Makefile  |  1998-02-07  |  1KB  |  64 lines

  1. # Makefile for zlib.  Modified for mingw32
  2. # For conditions of distribution and use, see copyright notice in zlib.h 
  3.  
  4. # To compile, 
  5. #   make -fmakefile.w32
  6.  
  7. CC=gcc
  8.  
  9. # Generate dependencies (see end of the file)
  10.  
  11. CPPFLAGS=-MMD 
  12.  
  13. #CFLAGS=-MMD -O
  14. #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
  15. #CFLAGS=-MMD -g -DDEBUG
  16. CFLAGS=-O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
  17.              -Wstrict-prototypes -Wmissing-prototypes
  18.  
  19. # If cp.exe is not found, replace with copy /Y .
  20. CP=cp -f
  21.  
  22. # The default value of RM is "rm -f."  
  23. # If "rm.exe" is not found, uncomment:
  24. # RM=del
  25.  
  26. LD=gcc
  27. LDLIBS=-L. -lz
  28. LDFLAGS=-s
  29.  
  30.  
  31. INCL=zlib.h zconf.h
  32. LIBS=libz.a
  33.  
  34. AR=ar rcs
  35.  
  36. OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
  37.        zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o \
  38.        inffast.o
  39.  
  40. TEST_OBJS = minigzip.o untgz.o
  41.  
  42. all: minigzip.exe untgz.exe
  43.  
  44. rebuild:    clean    all
  45.  
  46. libz.a: $(OBJS)
  47.     $(AR) $@ $(OBJS)
  48.  
  49. %.exe : %.o $(LIBS)
  50.     $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS)
  51.  
  52. .PHONY : clean
  53.  
  54. clean:
  55.     $(RM) *.d *.o *.exe libz.a foo.gz
  56.  
  57. DEPS := $(wildcard *.d)
  58. ifneq ($(DEPS),)
  59. include $(DEPS)
  60. endif
  61.  
  62.