]> git.saurik.com Git - wxWidgets.git/blob - src/xpm/MAKEFILE.VA
Updated version to 2.3.2 so apps can test for differences in new merged source
[wxWidgets.git] / src / xpm / MAKEFILE.VA
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 os2xpm.lib library for OS/2 3.0/4.0
11
12 # Suffixes
13 OBJSUFF=obj
14 SRCSUFF=cpp
15
16 OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP30__ /Dwx_msw /Q /N100
17 OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
18 OS2LIBFLAGS=/NOL /NOE
19 OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
20
21 !if "$(WXMAKINGDLL)" != "0"
22 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
23 EXTRALNKFLAGS=/DLL
24 !endif
25
26 # Change WXDIR or WXWIN to wherever wxWindows is found
27 WXDIR = $(WXWIN)
28
29 OS2XPMDIR=$(WXDIR)\src\xpm
30 OS2XPMINC=$(WINXPMDIR)
31
32 !if "$(WXMAKINGDLL)" != "1"
33 OS2XPMLIB=$(WXDIR)\lib\os2xpm.lib
34 !else
35 OS2XPMLIB=$(WXDIR)\lib\os2xpm.dll
36 !endif
37 INC=-I$(WXDIR)\src\xpm -I$(OS2XPMINC)
38
39 !ifndef FINAL
40 FINAL=0
41 !endif
42
43 !if "$(NOPCH)" == "1"
44 PCH=
45 PRECOMP=
46 MAKEPRECOMP=
47 !else
48 PCH=$(WXLIBNAME).pch
49 PRECOMP=/Si$(PCH)
50 MAKEPRECOMP=/Fi$(PCH)
51 !endif
52
53 !if "$(FINAL)" == "0"
54 !if "$(WXMAKINGDLL)" == "1"
55 D=DebugOS2DLL
56 !else
57 D=DebugOS2
58 !endif
59 OPT =
60 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
61 LINK_DEBUG_FLAGS=/DEBUG
62 CRTFLAG=/Gm /Gd
63 !else
64 # /O1 - smallest code
65 # /O2 - fastest code
66 !if "$(WXMAKINGDLL)" == "1"
67 D=RelseOS2DLL
68 !else
69 D=RelseOS2
70 !endif
71 OPT = /O+ /Oc /G5
72 DEBUG_FLAGS=
73 LINK_DEBUG_FLAGS=/RELEASE
74 CRTFLAG=/Gm /Gd
75 !endif
76
77 !if [md $(OS2XPMDIR)\$D]
78 !endif
79
80
81 CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
82 LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
83
84 {..\xpm}.c{..\xpm\$D}.obj:
85 @echo $<
86 icc @<<
87 $(CPPFLAGS) /Fo$@ /Tp $<
88 <<
89
90 OBJECTS = \
91 ..\xpm\$D\attrib.obj \
92 ..\xpm\$D\crbuffri.obj \
93 ..\xpm\$D\crdatfri.obj \
94 ..\xpm\$D\create.obj \
95 ..\xpm\$D\crifrbuf.obj \
96 ..\xpm\$D\crifrdat.obj \
97 ..\xpm\$D\data.obj \
98 ..\xpm\$D\image.obj \
99 ..\xpm\$D\info.obj \
100 ..\xpm\$D\hashtab.obj \
101 ..\xpm\$D\misc.obj \
102 ..\xpm\$D\parse.obj \
103 ..\xpm\$D\rdftodat.obj \
104 ..\xpm\$D\rdftoi.obj \
105 ..\xpm\$D\rgb.obj \
106 ..\xpm\$D\scan.obj \
107 ..\xpm\$D\simx.obj \
108 ..\xpm\$D\wrffrdat.obj \
109 ..\xpm\$D\wrffri.obj
110
111 LIBOBJECTS = \
112 attrib.obj \
113 crbuffri.obj \
114 crdatfri.obj \
115 create.obj \
116 crifrbuf.obj \
117 crifrdat.obj \
118 data.obj \
119 image.obj \
120 info.obj \
121 hashtab.obj \
122 misc.obj \
123 parse.obj \
124 rdftodat.obj \
125 rdftoi.obj \
126 rgb.obj \
127 scan.obj \
128 simx.obj \
129 wrffrdat.obj \
130 wrffri.obj
131
132 all: $(OBJECTS) $(OS2XPMLIB)
133
134 !if "$(WXMAKINGDLL)" != "1"
135
136 $(WXDIR)\lib\os2xpm.lib: $(LIBOBJECTS)
137 touch $(WXDIR)\lib\os2xpm.lib
138 del $(WXDIR)\lib\os2xpm.lib
139 ilib $(OS2LIBFLAGS) $@ @<<
140 $**;
141 <<
142 del *.obj
143
144 !else
145
146 # Update the dynamic link library
147 $(WXDIR)\lib\os2xpm.dll: $(OBJECTS)
148 icc @<<
149 /B" $(LINKFLAGS)" /Fe$@
150 $(LIBS)
151 $(OBJECTS)
152 $(WXDIR)\src\os2\os2xpm.def
153 <<
154 implib $(WXDIR)\lib\os2xpmd.lib $(WXDIR)\src\os2\os2xpm.def
155
156 !endif
157
158 clean:
159 del $(OS2XPMLIB)
160 erase /N $(OS2XPMDIR)\$D
161 rd $(OS2XPMDIR)\$D
162
163 cleanall: clean
164
165 $(LIBOBJECTS):
166 copy ..\xpm\$D\attrib.obj
167 copy ..\xpm\$D\crbuffri.obj
168 copy ..\xpm\$D\crdatfri.obj
169 copy ..\xpm\$D\create.obj
170 copy ..\xpm\$D\crifrbuf.obj
171 copy ..\xpm\$D\crifrdat.obj
172 copy ..\xpm\$D\data.obj
173 copy ..\xpm\$D\image.obj
174 copy ..\xpm\$D\info.obj
175 copy ..\xpm\$D\hashtab.obj
176 copy ..\xpm\$D\misc.obj
177 copy ..\xpm\$D\parse.obj
178 copy ..\xpm\$D\rdftodat.obj
179 copy ..\xpm\$D\rdftoi.obj
180 copy ..\xpm\$D\rgb.obj
181 copy ..\xpm\$D\scan.obj
182 copy ..\xpm\$D\simx.obj
183 copy ..\xpm\$D\wrffrdat.obj
184 copy ..\xpm\$D\wrffri.obj
185