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