"Fossies" - the Fresh Open Source Software Archive

Member "cvs-1.11.23/zlib/msdos/Makefile.w32" (1 Nov 2000, 2653 Bytes) of package /linux/misc/old/cvs-1.11.23.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Makefile for zlib
    2 # Microsoft 32-bit Visual C++ 4.0 or later (may work on earlier versions)
    3 
    4 # To use, do "nmake /f makefile.w32"
    5 
    6 # If you wish to reduce the memory requirements (default 256K for big
    7 # objects plus a few K), you can add to CFLAGS below: 
    8 #   -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
    9 # See zconf.h for details about the memory requirements.
   10 
   11 # ------------- Microsoft Visual C++ 4.0 and later -------------
   12 MODEL=
   13 CFLAGS=-Ox -GA3s -nologo -W3
   14 CC=cl
   15 LD=link
   16 LDFLAGS=
   17 O=.obj
   18 
   19 # variables
   20 OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
   21   trees$(O)
   22 OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\
   23   trees$(O)
   24 OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
   25   infutil$(O) inffast$(O)
   26 OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
   27   infutil$(O)+inffast$(O)
   28 
   29 all:  zlib.lib example.exe minigzip.exe
   30 
   31 adler32.obj: adler32.c zlib.h zconf.h
   32   $(CC) -c $(CFLAGS) $*.c
   33 
   34 compress.obj: compress.c zlib.h zconf.h
   35   $(CC) -c $(CFLAGS) $*.c
   36 
   37 crc32.obj: crc32.c zlib.h zconf.h
   38   $(CC) -c $(CFLAGS) $*.c
   39 
   40 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
   41   $(CC) -c $(CFLAGS) $*.c
   42 
   43 gzio.obj: gzio.c zutil.h zlib.h zconf.h
   44   $(CC) -c $(CFLAGS) $*.c
   45 
   46 infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
   47    infcodes.h infutil.h
   48   $(CC) -c $(CFLAGS) $*.c
   49 
   50 infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
   51    infcodes.h inffast.h
   52   $(CC) -c $(CFLAGS) $*.c
   53 
   54 inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
   55   $(CC) -c $(CFLAGS) $*.c
   56 
   57 inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
   58   $(CC) -c $(CFLAGS) $*.c
   59 
   60 infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
   61   $(CC) -c $(CFLAGS) $*.c
   62 
   63 inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
   64   $(CC) -c $(CFLAGS) $*.c
   65 
   66 trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
   67   $(CC) -c $(CFLAGS) $*.c
   68 
   69 uncompr.obj: uncompr.c zlib.h zconf.h
   70   $(CC) -c $(CFLAGS) $*.c
   71 
   72 zutil.obj: zutil.c zutil.h zlib.h zconf.h
   73   $(CC) -c $(CFLAGS) $*.c
   74 
   75 example.obj: example.c zlib.h zconf.h
   76   $(CC) -c $(CFLAGS) $*.c
   77 
   78 minigzip.obj: minigzip.c zlib.h zconf.h
   79   $(CC) -c $(CFLAGS) $*.c
   80 
   81 zlib.lib: $(OBJ1) $(OBJ2)
   82   if exist zlib.lib del zlib.lib
   83   lib /OUT:zlib.lib $(OBJ1) $(OBJ2)
   84 
   85 example.exe: example.obj zlib.lib
   86   $(LD) $(LDFLAGS) example.obj zlib.lib /OUT:example.exe /SUBSYSTEM:CONSOLE
   87 
   88 minigzip.exe: minigzip.obj zlib.lib
   89   $(LD) $(LDFLAGS) minigzip.obj zlib.lib /OUT:minigzip.exe /SUBSYSTEM:CONSOLE
   90 
   91 test: example.exe minigzip.exe
   92   example
   93   echo hello world | minigzip | minigzip -d 
   94 
   95 #clean:
   96 #  del *.obj
   97 #  del *.exe