]>
Commit | Line | Data |
---|---|---|
a0499e2f VZ |
1 | ############################################################################## |
2 | # Name: src/zlib/makefile.wat | |
3 | # Purpose: build zlib using Watcom 11.0+ compiler | |
4 | # Author: Vadim Zeitlin | |
5 | # Created: 21.01.03 | |
6 | # RCS-ID: $Id$ | |
7 | # Copyright: (c) 2003 Vadim Zeitlin | |
8 | # Licence: wxWindows licence | |
9 | ############################################################################## | |
c801d85f | 10 | |
a0499e2f VZ |
11 | WXDIR = ..\.. |
12 | OUTPUTDIR=watcom\ | |
c801d85f | 13 | |
a0499e2f | 14 | !include $(WXDIR)\src\makewat.env |
c801d85f | 15 | |
a0499e2f | 16 | LIBTARGET=$(WXDIR)\lib\zlib$(WATCOM_SUFFIX).lib |
c801d85f KB |
17 | |
18 | # variables | |
a0499e2f VZ |
19 | OBJECTS = & |
20 | $(OUTPUTDIR)adler32.obj & | |
21 | $(OUTPUTDIR)compress.obj & | |
22 | $(OUTPUTDIR)crc32.obj & | |
23 | $(OUTPUTDIR)gzio.obj & | |
24 | $(OUTPUTDIR)uncompr.obj & | |
25 | $(OUTPUTDIR)deflate.obj & | |
26 | $(OUTPUTDIR)trees.obj & | |
27 | $(OUTPUTDIR)zutil.obj & | |
28 | $(OUTPUTDIR)inflate.obj & | |
29 | $(OUTPUTDIR)infblock.obj & | |
30 | $(OUTPUTDIR)inftrees.obj & | |
31 | $(OUTPUTDIR)infcodes.obj & | |
32 | $(OUTPUTDIR)infutil.obj & | |
33 | $(OUTPUTDIR)inffast.obj | |
c801d85f | 34 | |
8a2c6ef8 JS |
35 | # all: test |
36 | ||
a0499e2f | 37 | all: $(OUTPUTDIR) $(LIBTARGET) .SYMBOLIC |
c801d85f | 38 | |
a0499e2f VZ |
39 | $(OUTPUTDIR): |
40 | @if not exist $^@ mkdir $^@ | |
c801d85f | 41 | |
a0499e2f | 42 | LBCFILE=$(OUTPUTDIR)zlib.lbc |
2796d5da | 43 | $(LIBTARGET) : $(OBJECTS) |
a0499e2f VZ |
44 | %create $(LBCFILE) |
45 | @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i | |
46 | wlib /q /b /c /n /p=512 $^@ @$(LBCFILE) | |
c801d85f | 47 | |
a3ef5bf5 | 48 | clean: .SYMBOLIC |
c801d85f KB |
49 | -erase *.obj |
50 | -erase *.exe | |
a0499e2f | 51 | -erase $(LIBTARGET) |