1381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes# Makefile for zlib
2381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes# OpenWatcom large model
3381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes# Last updated: 28-Dec-2005
4381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes
5381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes# To use, do "wmake -f watcom_l.mak"
6381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes
7381716e9396b55b1adb8235b020c37344f60ab07Elliott HughesC_SOURCE =  adler32.c  compress.c crc32.c   deflate.c    &
8381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes	    gzclose.c  gzlib.c    gzread.c  gzwrite.c    &
9381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes            infback.c  inffast.c  inflate.c inftrees.c   &
10381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes            trees.c    uncompr.c  zutil.c
11381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes
12381716e9396b55b1adb8235b020c37344f60ab07Elliott HughesOBJS =      adler32.obj  compress.obj crc32.obj   deflate.obj    &
13381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes	    gzclose.obj  gzlib.obj    gzread.obj  gzwrite.obj    &
14381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes            infback.obj  inffast.obj  inflate.obj inftrees.obj   &
15381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes            trees.obj    uncompr.obj  zutil.obj
16381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes
17381716e9396b55b1adb8235b020c37344f60ab07Elliott HughesCC       = wcc
18381716e9396b55b1adb8235b020c37344f60ab07Elliott HughesLINKER   = wcl
19381716e9396b55b1adb8235b020c37344f60ab07Elliott HughesCFLAGS   = -zq -ml -s -bt=dos -oilrtfm -fr=nul -wx
20381716e9396b55b1adb8235b020c37344f60ab07Elliott HughesZLIB_LIB = zlib_l.lib
21381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes
22381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes.C.OBJ:
23381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes        $(CC) $(CFLAGS) $[@
24381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes
25381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughesall: $(ZLIB_LIB) example.exe minigzip.exe
26381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes
27381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes$(ZLIB_LIB): $(OBJS)
28381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes	wlib -b -c $(ZLIB_LIB) -+adler32.obj  -+compress.obj -+crc32.obj
29381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes	wlib -b -c $(ZLIB_LIB) -+gzclose.obj  -+gzlib.obj    -+gzread.obj   -+gzwrite.obj
30381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes        wlib -b -c $(ZLIB_LIB) -+deflate.obj  -+infback.obj
31381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes        wlib -b -c $(ZLIB_LIB) -+inffast.obj  -+inflate.obj  -+inftrees.obj
32381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes        wlib -b -c $(ZLIB_LIB) -+trees.obj    -+uncompr.obj  -+zutil.obj
33381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes
34381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughesexample.exe: $(ZLIB_LIB) example.obj
35381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes	$(LINKER) -fe=example.exe example.obj $(ZLIB_LIB)
36381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes
37381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughesminigzip.exe: $(ZLIB_LIB) minigzip.obj
38381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes	$(LINKER) -fe=minigzip.exe minigzip.obj $(ZLIB_LIB)
39381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes
40381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughesclean: .SYMBOLIC
41381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes          del *.obj
42381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes          del $(ZLIB_LIB)
43381716e9396b55b1adb8235b020c37344f60ab07Elliott Hughes          @echo Cleaning done
44