watcom_l.mak 1.4 KB
Newer Older
M
Mark Adler 已提交
1 2 3 4 5 6 7
# Makefile for zlib
# OpenWatcom large model
# Last updated: 28-Dec-2005

# To use, do "wmake -f watcom_l.mak"

C_SOURCE =  adler32.c  compress.c crc32.c   deflate.c    &
M
Mark Adler 已提交
8
	    gzclose.c  gzlib.c    gzread.c  gzwrite.c    &
M
Mark Adler 已提交
9 10
            infback.c  inffast.c  inflate.c inftrees.c   &
            trees.c    uncompr.c  zutil.c
M
Mark Adler 已提交
11 12

OBJS =      adler32.obj  compress.obj crc32.obj   deflate.obj    &
M
Mark Adler 已提交
13
	    gzclose.obj  gzlib.obj    gzread.obj  gzwrite.obj    &
M
Mark Adler 已提交
14 15
            infback.obj  inffast.obj  inflate.obj inftrees.obj   &
            trees.obj    uncompr.obj  zutil.obj
M
Mark Adler 已提交
16 17 18 19 20 21

CC       = wcc
LINKER   = wcl
CFLAGS   = -zq -ml -s -bt=dos -oilrtfm -fr=nul -wx
ZLIB_LIB = zlib_l.lib

M
Mark Adler 已提交
22
.C.OBJ:
M
Mark Adler 已提交
23 24 25 26 27 28
        $(CC) $(CFLAGS) $[@

all: $(ZLIB_LIB) example.exe minigzip.exe

$(ZLIB_LIB): $(OBJS)
	wlib -b -c $(ZLIB_LIB) -+adler32.obj  -+compress.obj -+crc32.obj
M
Mark Adler 已提交
29
	wlib -b -c $(ZLIB_LIB) -+gzclose.obj  -+gzlib.obj    -+gzread.obj   -+gzwrite.obj
M
Mark Adler 已提交
30
        wlib -b -c $(ZLIB_LIB) -+deflate.obj  -+infback.obj
M
Mark Adler 已提交
31 32 33 34 35 36 37 38 39 40 41 42 43
        wlib -b -c $(ZLIB_LIB) -+inffast.obj  -+inflate.obj  -+inftrees.obj
        wlib -b -c $(ZLIB_LIB) -+trees.obj    -+uncompr.obj  -+zutil.obj

example.exe: $(ZLIB_LIB) example.obj
	$(LINKER) -fe=example.exe example.obj $(ZLIB_LIB)

minigzip.exe: $(ZLIB_LIB) minigzip.obj
	$(LINKER) -fe=minigzip.exe minigzip.obj $(ZLIB_LIB)

clean: .SYMBOLIC
          del *.obj
          del $(ZLIB_LIB)
          @echo Cleaning done