]> git.saurik.com Git - wxWidgets.git/blame - src/makeva.env
mingw32 compilation fixes
[wxWidgets.git] / src / makeva.env
CommitLineData
0e320a79
DW
1#
2# File: Makeva.env
f0a56ab0
DW
3# Author: David Webster
4# Created: Wed Apr 17 08:36:42 1999
0e320a79
DW
5# Updated:
6#
7# VisualAge C++ V3.0 makefile include file
8#
9
10# Suffixes
11OBJSUFF=obj
12SRCSUFF=cpp
13
14OS2FLAGS=/c /W3 /D__VISAGECPP__ /Ss /Q /N100
15OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
9fea1a5d 16OS2LIBFLAGS=/NOL /NOE
0e320a79
DW
17OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
18
19# Change this to your WXWIN directory
3c0df300 20WXDIR=h:\dev\Wx2\wxwindows
0e320a79
DW
21
22WXSRC=$(WXDIR)\src\os2
23WXINC=$(WXDIR)\include
24WXBASESRC=$(WXDIR)\src\common
25EXTRAINC=$(WXDIR)\src\png
26
27#####################################################################
28# These are the possible DLL/non-DLL usages:
29#
30# Type _DLL/_WINDLL WXUSINGDLL WXMAKINGDLL Library
31#--------------------------------------------------------------------
32# Normal application - - - wx.lib
33#
34# wxWin as DLL Defined - Defined wx200.lib
35#
36# App using wxWin DLL - Defined - wx200.lib
37#
38# App built as one DLL Defined - - wx.lib
39#
40######################################################################
41#
42# Compiling your app:
43#--------------------
44# when compiling an app to use the DLL version of wxWindows
45# (but not to be a DLL itself), set WXUSINGDLL to 1 in your
46# makefile just before including ntwxwin.mak.
47# To compile wxWin _and_ app itself as a DLL, set DLL to 1
48# in ntwxwin.mak, and do not set WXUSINGDLL.
49#
50# Compiling wxWindows:
51#---------------------
52# Use the dll target to compile wxWindows as DLL; then make 'pch'
53# to generate a precompiled header for your apps to use. BUG: must compile without
54# wxExpr (USE_WX_RESOURCES = 0) for this to link properly. Don't know why yet.
55# Use the dllapp target to compile wxWindows for making a DLL app (not implemented yet)
56
57#DLL=0
58
59!if "$(WXUSINGDLL)" == "1"
60EXTRADLLFLAGS=/DWXUSINGDLL=1
61EXTRALNKFLAGS=/EXEC
62!endif
63
64!if "$(WXMAKINGDLL)" == "1"
65EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
66EXTRALNKFLAGS=/DLL
67!endif
68
69!if "$(WXMAKINGDLL)" == "0" && "$(DLL)" == "1"
70EXTRADLLFLAGS=
71EXTRALNKFLAGS=/EXEC
72!endif
73
74!ifndef FINAL
75FINAL=0
76DEBUG=1
77!endif
78
79!ifndef DLL
80DLL=0
81!endif
82
83# This sets 'D' to a suitable directory name
84# for this kind of build, and WXLIBNAME to one of wx (static release), wx_d (static debug),
85# wx200 (DLL release), wx200_d (DLL debug)
86
87!if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
88WXLIBNAME=wx200
89!else
90WXLIBNAME=wx
91!endif
92
93!if "$(NEW_WXLIBNAME)" != ""
94WXLIBNAME=$(NEW_WXLIBNAME)
95!endif
96
97!if "$(FINAL)" == "1"
3c0df300 98D=RelseOS2
0e320a79 99!else
3c0df300 100D=DebugOS2
0e320a79
DW
101!endif
102
103WXLIB=$(WXDIR)\lib\$(WXLIBNAME).lib
104
105!if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
106D=$(D)DLL
107!endif
108
109
110INC=-I$(WXINC) -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib -I$(EXTRAINC)
111LIBS = $(EXTRALIBS) $(WXLIB) $(WINLIBS) $(WXDIR)\lib\jpeg.lib
112
113MAKEPRECOMP=/FiWX/WXPREC.H
114OPTIONS=
115
116!if "$(FINAL)" == "0"
117OPT =
118DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
119LINK_DEBUG_FLAGS=/DEBUG
120CRTFLAG=/Gm /Gd
121!else
122# /O1 - smallest code
123# /O2 - fastest code
124OPT = /O+ /Oc /G5
125DEBUG_FLAGS=
126LINK_DEBUG_FLAGS=/RELEASE
127CRTFLAG=/Gm /Gd
128!endif
129
130!if "$(DLL)" == "0"
131
132!if "$(NOPCH)" == "1"
133PCH=
134PRECOMP=
135MAKEPRECOMP=
136!else
137PCH=$(WXLIBNAME).pch
138PRECOMP=/Si$(PCH)
139MAKEPRECOMP=/Fi$(PCH)
140!endif
141
142CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
143# If you don't include wxprec.h, use CPPFLAGS2
144CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
145LINKFLAGS=$(LINK_DEBUG_FLAGS) $(OS2LINKFLAGS) $(EXTRALNKFLAGS)
146DUMMY=dummy
147
148!else
149
150!if "$(WXMAKINGDLL)" == "1"
151PCH=$(WXLIBNAME).pch
152DUMMY=dummydll
153!else
154PCH=$(WXLIBNAME).pch
155DUMMY=dummy
156!endif
157
158PRECOMP=/SiWX/WXPREC.H
159CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
160CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
161LINKFLAGS=$(LINK_DEBUG_FLAGS) $(OS2LINKFLAGS) $(EXTRALNKFLAGS)
162!endif
163
164DUMMYOBJ=$(WXDIR)\src\os2\$D\$(DUMMY).obj
165
166.c.obj:
167 icc @<<
168$(CPPFLAGS2) /Fo$@ /c $<
169<<
170
171.cpp.obj:
172 icc @<<
173$(CPPFLAGS2) /Fo$@ /c $<
174<<
175