]>
Commit | Line | Data |
---|---|---|
735c116a DW |
1 | # |
2 | # File: makefile.vc | |
3 | # Author: David Webster | |
4 | # Created: 1999 | |
5 | # Updated: | |
6 | # Copyright: c) 1993, AIAI, University of Edinburgh | |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
10 | # Makefile : Builds os2png.lib library for OS/2 3.0/4.0 | |
11 | ||
12 | # Suffixes | |
13 | OBJSUFF=obj | |
14 | SRCSUFF=cpp | |
15 | ||
57e3f9d9 | 16 | OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /Ss /Q /N100 |
735c116a DW |
17 | OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16 |
18 | OS2LIBFLAGS=/NOL /NOE | |
19 | OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB | |
20 | ||
21 | # Change WXDIR or WXWIN to wherever wxWindows is found | |
57e3f9d9 | 22 | WXDIR = $(WXWIN) |
735c116a DW |
23 | |
24 | OS2PNGDIR=$(WXDIR)\src\png | |
25 | OS2PNGINC=$(WINPNGDIR) | |
26 | OS2PNGLIB=$(WXDIR)\lib\os2png.lib | |
27 | ||
28 | INC=-I$(WXDIR)\src\zlib -I$(OS2PNGINC) | |
29 | ||
30 | !ifndef FINAL | |
31 | FINAL=0 | |
32 | !endif | |
33 | ||
34 | !if "$(NOPCH)" == "1" | |
35 | PCH= | |
36 | PRECOMP= | |
37 | MAKEPRECOMP= | |
38 | !else | |
39 | PCH=$(WXLIBNAME).pch | |
40 | PRECOMP=/Si$(PCH) | |
41 | MAKEPRECOMP=/Fi$(PCH) | |
42 | !endif | |
43 | ||
44 | !if "$(FINAL)" == "0" | |
57e3f9d9 | 45 | D=DebugOS2 |
735c116a DW |
46 | OPT = |
47 | DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb | |
48 | LINK_DEBUG_FLAGS=/DEBUG | |
49 | CRTFLAG=/Gm /Gd | |
50 | !else | |
51 | # /O1 - smallest code | |
52 | # /O2 - fastest code | |
57e3f9d9 | 53 | D=RelseOS2 |
735c116a DW |
54 | OPT = /O+ /Oc /G5 |
55 | DEBUG_FLAGS= | |
56 | LINK_DEBUG_FLAGS=/RELEASE | |
57 | CRTFLAG=/Gm /Gd | |
58 | !endif | |
59 | ||
50c375d3 DW |
60 | !if [md $(OS2PNGDIR)\$D] |
61 | !endif | |
62 | ||
735c116a DW |
63 | CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG) |
64 | ||
65 | {..\png}.c{..\png\$D}.obj: | |
66 | @echo $< | |
67 | icc @<< | |
68 | $(CPPFLAGS) /Fo$@ /Tp $< | |
69 | << | |
70 | ||
71 | OBJECTS = \ | |
72 | ..\png\$D\png.obj \ | |
73 | ..\png\$D\pngread.obj \ | |
74 | ..\png\$D\pngrtran.obj \ | |
75 | ..\png\$D\pngrutil.obj \ | |
76 | ..\png\$D\pngpread.obj \ | |
77 | ..\png\$D\pngtrans.obj \ | |
78 | ..\png\$D\pngwrite.obj \ | |
79 | ..\png\$D\pngwtran.obj \ | |
80 | ..\png\$D\pngwutil.obj \ | |
81 | ..\png\$D\pngerror.obj \ | |
82 | ..\png\$D\pngmem.obj \ | |
83 | ..\png\$D\pngwio.obj \ | |
84 | ..\png\$D\pngrio.obj \ | |
85 | ..\png\$D\pngget.obj \ | |
86 | ..\png\$D\pngset.obj | |
87 | ||
88 | all: $(OS2PNGLIB) | |
89 | ||
735c116a DW |
90 | $(WXDIR)\lib\os2png.lib: $(OBJECTS) |
91 | touch $(WXDIR)\lib\os2png.lib | |
92 | del $(WXDIR)\lib\os2png.lib | |
93 | ilib $(OS2LIBFLAGS) $@ @<< | |
94 | $**; | |
95 | << | |
96 | ||
97 | clean: | |
50c375d3 DW |
98 | del $(OS2PNGLIB) |
99 | erase /N $(OS2PNGDIR)\$D | |
100 | rd $(OS2PNGDIR)\$D | |
735c116a DW |
101 | |
102 | cleanall: clean | |
103 |