]>
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 = ..\.. | |
10 | ||
11 | !include $(WXDIR)\src\makewat.env | |
12 | ||
13 | WXLIB = $(WXDIR)\lib | |
14 | ||
15 | LIBTARGET = $(WXLIB)\png.lib | |
16 | ||
17 | OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj & | |
18 | pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj & | |
19 | pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj | |
20 | ||
21 | all: $(OBJECTS) $(LIBTARGET) | |
22 | ||
23 | $(LIBTARGET) : $(OBJECTS) | |
24 | %create tmp.lbc | |
25 | @for %i in ( $(OBJECTS) ) do @%append tmp.lbc +%i | |
26 | wlib /b /c /n /p=512 $^@ @tmp.lbc | |
27 | ||
28 | clean: .SYMBOLIC | |
29 | -erase *.obj | |
30 | -erase $(LIBTARGET) | |
31 | -erase *.pch | |
32 | -erase *.err | |
33 | -erase *.lbc | |
34 | ||
35 | cleanall: clean | |
36 | ||
37 | #accel.obj: $(MSWDIR)\accel.cpp | |
38 | # *$(CCC) $(CPPFLAGS) $(IFLAGS) $< | |
39 | ||
40 |