]>
Commit | Line | Data |
---|---|---|
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 | ############################################################################## | |
10 | ||
11 | WXDIR = ..\.. | |
12 | OUTPUTDIR=watcom\ | |
13 | ||
14 | !include $(WXDIR)\src\makewat.env | |
15 | ||
16 | LIBTARGET=$(WXDIR)\lib\zlib$(WATCOM_SUFFIX).lib | |
17 | ||
18 | # variables | |
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 | |
34 | ||
35 | # all: test | |
36 | ||
37 | all: $(OUTPUTDIR) $(LIBTARGET) .SYMBOLIC | |
38 | ||
39 | $(OUTPUTDIR): | |
40 | @if not exist $^@ mkdir $^@ | |
41 | ||
42 | LBCFILE=$(OUTPUTDIR)zlib.lbc | |
43 | $(LIBTARGET) : $(OBJECTS) | |
44 | %create $(LBCFILE) | |
45 | @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i | |
46 | wlib /q /b /c /n /p=512 $^@ @$(LBCFILE) | |
47 | ||
48 | clean: .SYMBOLIC | |
49 | -erase *.obj | |
50 | -erase *.exe | |
51 | -erase $(LIBTARGET) |