annotate src/zlib-1.2.7/watcom/watcom_l.mak @ 20:ab7c38c4c577

Ranlib
author Chris Cannam
date Mon, 25 Mar 2013 16:28:19 +0000
parents e13257ea84a4
children
rev   line source
Chris@4 1 # Makefile for zlib
Chris@4 2 # OpenWatcom large model
Chris@4 3 # Last updated: 28-Dec-2005
Chris@4 4
Chris@4 5 # To use, do "wmake -f watcom_l.mak"
Chris@4 6
Chris@4 7 C_SOURCE = adler32.c compress.c crc32.c deflate.c &
Chris@4 8 gzclose.c gzlib.c gzread.c gzwrite.c &
Chris@4 9 infback.c inffast.c inflate.c inftrees.c &
Chris@4 10 trees.c uncompr.c zutil.c
Chris@4 11
Chris@4 12 OBJS = adler32.obj compress.obj crc32.obj deflate.obj &
Chris@4 13 gzclose.obj gzlib.obj gzread.obj gzwrite.obj &
Chris@4 14 infback.obj inffast.obj inflate.obj inftrees.obj &
Chris@4 15 trees.obj uncompr.obj zutil.obj
Chris@4 16
Chris@4 17 CC = wcc
Chris@4 18 LINKER = wcl
Chris@4 19 CFLAGS = -zq -ml -s -bt=dos -oilrtfm -fr=nul -wx
Chris@4 20 ZLIB_LIB = zlib_l.lib
Chris@4 21
Chris@4 22 .C.OBJ:
Chris@4 23 $(CC) $(CFLAGS) $[@
Chris@4 24
Chris@4 25 all: $(ZLIB_LIB) example.exe minigzip.exe
Chris@4 26
Chris@4 27 $(ZLIB_LIB): $(OBJS)
Chris@4 28 wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj
Chris@4 29 wlib -b -c $(ZLIB_LIB) -+gzclose.obj -+gzlib.obj -+gzread.obj -+gzwrite.obj
Chris@4 30 wlib -b -c $(ZLIB_LIB) -+deflate.obj -+infback.obj
Chris@4 31 wlib -b -c $(ZLIB_LIB) -+inffast.obj -+inflate.obj -+inftrees.obj
Chris@4 32 wlib -b -c $(ZLIB_LIB) -+trees.obj -+uncompr.obj -+zutil.obj
Chris@4 33
Chris@4 34 example.exe: $(ZLIB_LIB) example.obj
Chris@4 35 $(LINKER) -fe=example.exe example.obj $(ZLIB_LIB)
Chris@4 36
Chris@4 37 minigzip.exe: $(ZLIB_LIB) minigzip.obj
Chris@4 38 $(LINKER) -fe=minigzip.exe minigzip.obj $(ZLIB_LIB)
Chris@4 39
Chris@4 40 clean: .SYMBOLIC
Chris@4 41 del *.obj
Chris@4 42 del $(ZLIB_LIB)
Chris@4 43 @echo Cleaning done