]> git.saurik.com Git - wxWidgets.git/blame - src/xpm/MAKEFILE.VA
Fixed toolbar crash for MinGW/Cygwin
[wxWidgets.git] / src / xpm / MAKEFILE.VA
CommitLineData
16a12a3d
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 os2xpm.lib library for OS/2 3.0/4.0
11
12# Suffixes
13OBJSUFF=obj
14SRCSUFF=cpp
15
6dc3e5dc 16OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP30__ /Dwx_msw /Q /N100
16a12a3d
DW
17OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
18OS2LIBFLAGS=/NOL /NOE
19OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
20
4de601b1
DW
21!if "$(WXMAKINGDLL)" != "0"
22EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
23EXTRALNKFLAGS=/DLL
24!endif
25
16a12a3d 26# Change WXDIR or WXWIN to wherever wxWindows is found
57e3f9d9 27WXDIR = $(WXWIN)
16a12a3d
DW
28
29OS2XPMDIR=$(WXDIR)\src\xpm
30OS2XPMINC=$(WINXPMDIR)
16a12a3d 31
4de601b1
DW
32!if "$(WXMAKINGDLL)" != "1"
33OS2XPMLIB=$(WXDIR)\lib\os2xpm.lib
34!else
35OS2XPMLIB=$(WXDIR)\lib\os2xpm.dll
36!endif
16a12a3d
DW
37INC=-I$(WXDIR)\src\xpm -I$(OS2XPMINC)
38
39!ifndef FINAL
40FINAL=0
41!endif
42
43!if "$(NOPCH)" == "1"
44PCH=
45PRECOMP=
46MAKEPRECOMP=
47!else
48PCH=$(WXLIBNAME).pch
49PRECOMP=/Si$(PCH)
50MAKEPRECOMP=/Fi$(PCH)
51!endif
52
53!if "$(FINAL)" == "0"
4de601b1
DW
54!if "$(WXMAKINGDLL)" == "1"
55D=DebugOS2DLL
56!else
57e3f9d9 57D=DebugOS2
4de601b1 58!endif
16a12a3d
DW
59OPT =
60DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
61LINK_DEBUG_FLAGS=/DEBUG
62CRTFLAG=/Gm /Gd
63!else
64# /O1 - smallest code
65# /O2 - fastest code
4de601b1
DW
66!if "$(WXMAKINGDLL)" == "1"
67D=RelseOS2DLL
68!else
57e3f9d9 69D=RelseOS2
4de601b1 70!endif
16a12a3d
DW
71OPT = /O+ /Oc /G5
72DEBUG_FLAGS=
73LINK_DEBUG_FLAGS=/RELEASE
74CRTFLAG=/Gm /Gd
75!endif
76
77!if [md $(OS2XPMDIR)\$D]
78!endif
79
80
4de601b1
DW
81CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
82LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
16a12a3d
DW
83
84{..\xpm}.c{..\xpm\$D}.obj:
85 @echo $<
86 icc @<<
87$(CPPFLAGS) /Fo$@ /Tp $<
88<<
89
90OBJECTS = \
e6ed776f 91 ..\xpm\$D\attrib.obj \
16a12a3d
DW
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 \
e6ed776f
GRG
98 ..\xpm\$D\image.obj \
99 ..\xpm\$D\info.obj \
16a12a3d
DW
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 \
16a12a3d
DW
109 ..\xpm\$D\wrffri.obj
110
ea258ad3
DW
111LIBOBJECTS = \
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
6dc3e5dc
DW
132all: $(OBJECTS) $(OS2XPMLIB)
133
4de601b1
DW
134!if "$(WXMAKINGDLL)" != "1"
135
6dc3e5dc
DW
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
4de601b1
DW
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)
872ae055 152 $(WXDIR)\src\os2\os2xpm.def
4de601b1 153<<
872ae055 154 implib $(WXDIR)\lib\os2xpmd.lib $(WXDIR)\src\os2\os2xpm.def
4de601b1
DW
155
156!endif
157
6dc3e5dc
DW
158clean:
159 del $(OS2XPMLIB)
160 erase /N $(OS2XPMDIR)\$D
161 rd $(OS2XPMDIR)\$D
162
163cleanall: clean
164
ea258ad3
DW
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