summaryrefslogtreecommitdiff
path: root/archived/ptlibzippy/watcom/watcom_f.mak
blob: bd180f778d485e303ecd07ac438399b3771a4b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Makefile for PTlibzippy
# OpenWatcom flat model
# Last updated: 28-Dec-2005

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

C_SOURCE =  adler32.c  compress.c crc32.c   deflate.c    &
	    gzclose.c  gzlib.c    gzread.c  gzwrite.c    &
            infback.c  inffast.c  inflate.c inftrees.c   &
            trees.c    uncompr.c  ptzippyutil.c

OBJS =      adler32.obj  compress.obj crc32.obj   deflate.obj    &
	    gzclose.obj  gzlib.obj    gzread.obj  gzwrite.obj    &
            infback.obj  inffast.obj  inflate.obj inftrees.obj   &
            trees.obj    uncompr.obj  ptzippyutil.obj

CC       = wcc386
LINKER   = wcl386
CFLAGS   = -zq -mf -3r -fp3 -s -bt=dos -oilrtfm -fr=nul -wx
PTLIBZIPPY_LIB = ptlibzippy_f.lib

.C.OBJ:
        $(CC) $(CFLAGS) $[@

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

$(PTLIBZIPPY_LIB): $(OBJS)
	wlib -b -c $(PTLIBZIPPY_LIB) -+adler32.obj  -+compress.obj -+crc32.obj
	wlib -b -c $(PTLIBZIPPY_LIB) -+gzclose.obj  -+gzlib.obj    -+gzread.obj   -+gzwrite.obj
        wlib -b -c $(PTLIBZIPPY_LIB) -+deflate.obj  -+infback.obj
        wlib -b -c $(PTLIBZIPPY_LIB) -+inffast.obj  -+inflate.obj  -+inftrees.obj
        wlib -b -c $(PTLIBZIPPY_LIB) -+trees.obj    -+uncompr.obj  -+ptzippyutil.obj

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

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

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