]>
Commit | Line | Data |
---|---|---|
8a2c6ef8 JS |
1 | #!/binb/wmake.exe |
2 | # | |
3 | # File: makefile.wat | |
4 | # Author: Julian Smart | |
5 | # Created: 1998 | |
6 | # | |
7 | # Makefile : Builds PNG library for Watcom C++, WIN32 | |
8 | ||
9 | WXDIR = ..\.. | |
25889d3c | 10 | EXTRACPPFLAGS=-i=..\zlib |
a0499e2f | 11 | OUTPUTDIR=Watcom\ |
8a2c6ef8 JS |
12 | |
13 | !include $(WXDIR)\src\makewat.env | |
14 | ||
15 | WXLIB = $(WXDIR)\lib | |
16 | ||
a0499e2f VZ |
17 | LIBTARGET = $(WXLIB)\png$(WATCOM_SUFFIX).lib |
18 | ||
19 | OBJECTS = & | |
20 | $(OUTPUTDIR)png.obj & | |
21 | $(OUTPUTDIR)pngread.obj & | |
22 | $(OUTPUTDIR)pngrtran.obj & | |
23 | $(OUTPUTDIR)pngrutil.obj & | |
24 | $(OUTPUTDIR)pngpread.obj & | |
25 | $(OUTPUTDIR)pngtrans.obj & | |
26 | $(OUTPUTDIR)pngwrite.obj & | |
27 | $(OUTPUTDIR)pngwtran.obj & | |
28 | $(OUTPUTDIR)pngwutil.obj & | |
29 | $(OUTPUTDIR)pngerror.obj & | |
30 | $(OUTPUTDIR)pngmem.obj & | |
31 | $(OUTPUTDIR)pngwio.obj & | |
32 | $(OUTPUTDIR)pngrio.obj & | |
33 | $(OUTPUTDIR)pngget.obj & | |
34 | $(OUTPUTDIR)pngset.obj | |
35 | ||
36 | all: $(OUTPUTDIR) $(LIBTARGET) .SYMBOLIC | |
37 | ||
38 | $(OUTPUTDIR): | |
39 | @if not exist $^@ mkdir $^@ | |
40 | ||
41 | LBCFILE=$(OUTPUTDIR)png.lbc | |
8a2c6ef8 | 42 | $(LIBTARGET) : $(OBJECTS) |
a0499e2f VZ |
43 | %create $(LBCFILE) |
44 | @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i | |
45 | wlib /q /b /c /n /p=512 $^@ @$(LBCFILE) | |
8a2c6ef8 JS |
46 | |
47 | clean: .SYMBOLIC | |
a0499e2f | 48 | -erase $(OUTPUTDIR)*.obj |
8a2c6ef8 | 49 | -erase $(LIBTARGET) |
a0499e2f VZ |
50 | -erase $(OUTPUTDIR)*.pch |
51 | -erase $(OUTPUTDIR)*.err | |
52 | -erase $(OUTPUTDIR)*.lbc | |
8a2c6ef8 JS |
53 | |
54 | cleanall: clean | |
55 |