Blame thirdparty/zlib-1.2.8/watcom/watcom_l.mak
|
kusano |
fc6ab3 |
# Makefile for zlib
|
|
kusano |
fc6ab3 |
# OpenWatcom large model
|
|
kusano |
fc6ab3 |
# Last updated: 28-Dec-2005
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
# To use, do "wmake -f watcom_l.mak"
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
C_SOURCE = adler32.c compress.c crc32.c deflate.c &
|
|
kusano |
fc6ab3 |
gzclose.c gzlib.c gzread.c gzwrite.c &
|
|
kusano |
fc6ab3 |
infback.c inffast.c inflate.c inftrees.c &
|
|
kusano |
fc6ab3 |
trees.c uncompr.c zutil.c
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
OBJS = adler32.obj compress.obj crc32.obj deflate.obj &
|
|
kusano |
fc6ab3 |
gzclose.obj gzlib.obj gzread.obj gzwrite.obj &
|
|
kusano |
fc6ab3 |
infback.obj inffast.obj inflate.obj inftrees.obj &
|
|
kusano |
fc6ab3 |
trees.obj uncompr.obj zutil.obj
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
CC = wcc
|
|
kusano |
fc6ab3 |
LINKER = wcl
|
|
kusano |
fc6ab3 |
CFLAGS = -zq -ml -s -bt=dos -oilrtfm -fr=nul -wx
|
|
kusano |
fc6ab3 |
ZLIB_LIB = zlib_l.lib
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
.C.OBJ:
|
|
kusano |
fc6ab3 |
$(CC) $(CFLAGS) $[@
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
all: $(ZLIB_LIB) example.exe minigzip.exe
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
$(ZLIB_LIB): $(OBJS)
|
|
kusano |
fc6ab3 |
wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj
|
|
kusano |
fc6ab3 |
wlib -b -c $(ZLIB_LIB) -+gzclose.obj -+gzlib.obj -+gzread.obj -+gzwrite.obj
|
|
kusano |
fc6ab3 |
wlib -b -c $(ZLIB_LIB) -+deflate.obj -+infback.obj
|
|
kusano |
fc6ab3 |
wlib -b -c $(ZLIB_LIB) -+inffast.obj -+inflate.obj -+inftrees.obj
|
|
kusano |
fc6ab3 |
wlib -b -c $(ZLIB_LIB) -+trees.obj -+uncompr.obj -+zutil.obj
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
example.exe: $(ZLIB_LIB) example.obj
|
|
kusano |
fc6ab3 |
$(LINKER) -fe=example.exe example.obj $(ZLIB_LIB)
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
minigzip.exe: $(ZLIB_LIB) minigzip.obj
|
|
kusano |
fc6ab3 |
$(LINKER) -fe=minigzip.exe minigzip.obj $(ZLIB_LIB)
|
|
kusano |
fc6ab3 |
|
|
kusano |
fc6ab3 |
clean: .SYMBOLIC
|
|
kusano |
fc6ab3 |
del *.obj
|
|
kusano |
fc6ab3 |
del $(ZLIB_LIB)
|
|
kusano |
fc6ab3 |
@echo Cleaning done
|