]> git.saurik.com Git - wxWidgets.git/blame - src/makeva.env
Somebody forgot to restore from testing phase.
[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 17
57e3f9d9
DW
18# Set an environment variable, WXWIN, to your WXWIN directory
19WXDIR=$(WXWIN)
0e320a79 20
ea258ad3 21# Set to where your UPM and LAN libs are
98de692c
DW
22UPMLIB=C:\OS2TK45\LIB
23NETLIB=C:\OS2TK45\LIB
63d5e838 24TCPIP=C:\OS2TK45\LIB
ea258ad3 25
0e320a79
DW
26WXSRC=$(WXDIR)\src\os2
27WXINC=$(WXDIR)\include
28WXBASESRC=$(WXDIR)\src\common
29EXTRAINC=$(WXDIR)\src\png
97507cce
DW
30LINK=icc
31RC=rc
0e320a79
DW
32
33#####################################################################
34# These are the possible DLL/non-DLL usages:
35#
36# Type _DLL/_WINDLL WXUSINGDLL WXMAKINGDLL Library
37#--------------------------------------------------------------------
38# Normal application - - - wx.lib
39#
c31752da 40# wxWin as DLL Defined - Defined wx25.lib
0e320a79 41#
c31752da 42# App using wxWin DLL - Defined - wx25.lib
0e320a79
DW
43#
44# App built as one DLL Defined - - wx.lib
45#
46######################################################################
47#
48# Compiling your app:
49#--------------------
50# when compiling an app to use the DLL version of wxWindows
51# (but not to be a DLL itself), set WXUSINGDLL to 1 in your
52# makefile just before including ntwxwin.mak.
53# To compile wxWin _and_ app itself as a DLL, set DLL to 1
54# in ntwxwin.mak, and do not set WXUSINGDLL.
55#
56# Compiling wxWindows:
57#---------------------
58# Use the dll target to compile wxWindows as DLL; then make 'pch'
59# to generate a precompiled header for your apps to use. BUG: must compile without
60# wxExpr (USE_WX_RESOURCES = 0) for this to link properly. Don't know why yet.
61# Use the dllapp target to compile wxWindows for making a DLL app (not implemented yet)
62
63#DLL=0
64
65!if "$(WXUSINGDLL)" == "1"
66EXTRADLLFLAGS=/DWXUSINGDLL=1
67EXTRALNKFLAGS=/EXEC
68!endif
69
70!if "$(WXMAKINGDLL)" == "1"
71EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
72EXTRALNKFLAGS=/DLL
73!endif
74
75!if "$(WXMAKINGDLL)" == "0" && "$(DLL)" == "1"
76EXTRADLLFLAGS=
77EXTRALNKFLAGS=/EXEC
78!endif
79
80!ifndef FINAL
81FINAL=0
82DEBUG=1
83!endif
84
85!ifndef DLL
86DLL=0
87!endif
88
89# This sets 'D' to a suitable directory name
90# for this kind of build, and WXLIBNAME to one of wx (static release), wx_d (static debug),
91# wx200 (DLL release), wx200_d (DLL debug)
92
93!if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
c31752da 94WXLIBNAME=wx25
0e320a79
DW
95!else
96WXLIBNAME=wx
97!endif
98
99!if "$(NEW_WXLIBNAME)" != ""
100WXLIBNAME=$(NEW_WXLIBNAME)
101!endif
102
103!if "$(FINAL)" == "1"
60b80789
DW
104!if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
105D=RelseOS2DLL
106!else
3c0df300 107D=RelseOS2
60b80789
DW
108!endif
109!else
110!if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
111D=DebugOS2DLL
0e320a79 112!else
3c0df300 113D=DebugOS2
0e320a79 114!endif
0e320a79
DW
115!endif
116
60b80789 117WXLIB=$(WXDIR)\lib\$(WXLIBNAME).lib
0e320a79 118
2b5f62a0 119INC=-I$(WXINC) -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib -I$(WXDIR)/src/tiff -I$(WXDIR)/src/png -I$(EXTRAINC)
2b75f580 120!if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
29108552 121LINKLIBS=CPPOM30I.LIB CPPOOC3I.LIB OS2386.LIB $(UPMLIB)\UPM32.LIB $(NETLIB)\NETAPI32.LIB $(TCPIP)\TCP32DLL.LIB $(TCPIP)\SO32DLL.LIB $(TCPIP)\TCPIP32.LIB $(TCPIP)\R0LIB32.LIB
2b5f62a0 122EXTRALIBS=$(WXDIR)\lib\os2pngd.lib $(WXDIR)\lib\os2zlibd.lib $(WXDIR)\lib\os2jpegd.lib $(WXDIR)\lib\os2tiffd.lib
2b75f580
DW
123!if "$(WXUSINGDLL)" == "1"
124EXTRALIBS=$(EXTRALIBS) $(WXLIB)
125!endif
60b80789
DW
126LIBS=$(LINKLIBS) $(EXTRALIBS)
127!else
29108552 128LINKLIBS=CPPOM30.LIB CPPOOC3.LIB OS2386.LIB $(UPMLIB)\UPM32.LIB $(NETLIB)\NETAPI32.LIB $(TCPIP)\TCP32DLL.LIB $(TCPIP)\SO32DLL.LIB $(TCPIP)\TCPIP32.LIB $(TCPIP)\R0LIB32.LIB
2b5f62a0 129EXTRALIBS=$(WXDIR)\lib\os2png.lib $(WXDIR)\lib\os2zlib.lib $(WXDIR)\lib\os2jpeg.lib $(WXDIR)\lib\os2tiff.lib
60b80789
DW
130LIBS=$(WXLIB) $(LINKLIBS) $(EXTRALIBS)
131!endif
0e320a79
DW
132
133MAKEPRECOMP=/FiWX/WXPREC.H
134OPTIONS=
135
136!if "$(FINAL)" == "0"
137OPT =
138DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
139LINK_DEBUG_FLAGS=/DEBUG
140CRTFLAG=/Gm /Gd
141!else
142# /O1 - smallest code
143# /O2 - fastest code
144OPT = /O+ /Oc /G5
145DEBUG_FLAGS=
146LINK_DEBUG_FLAGS=/RELEASE
147CRTFLAG=/Gm /Gd
148!endif
149
150!if "$(DLL)" == "0"
151
152!if "$(NOPCH)" == "1"
153PCH=
154PRECOMP=
155MAKEPRECOMP=
156!else
157PCH=$(WXLIBNAME).pch
158PRECOMP=/Si$(PCH)
159MAKEPRECOMP=/Fi$(PCH)
160!endif
161
162CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
163# If you don't include wxprec.h, use CPPFLAGS2
164CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
97507cce 165LINKFLAGS=$(OS2LINKFLAGS) $(LINK_DEBUG_FLAGS) $(EXTRALNKFLAGS)
60b80789
DW
166
167!if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
168DUMMY=dummydll
169!else
0e320a79 170DUMMY=dummy
60b80789 171!endif
0e320a79
DW
172
173!else
174
60b80789 175!if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
0e320a79
DW
176PCH=$(WXLIBNAME).pch
177DUMMY=dummydll
178!else
179PCH=$(WXLIBNAME).pch
180DUMMY=dummy
181!endif
182
183PRECOMP=/SiWX/WXPREC.H
184CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
185CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
97507cce 186LINKFLAGS=$(OS2LINKFLAGS) $(LINK_DEBUG_FLAGS) $(EXTRALNKFLAGS)
0e320a79
DW
187!endif
188
189DUMMYOBJ=$(WXDIR)\src\os2\$D\$(DUMMY).obj
190
191.c.obj:
192 icc @<<
193$(CPPFLAGS2) /Fo$@ /c $<
194<<
195
196.cpp.obj:
197 icc @<<
198$(CPPFLAGS2) /Fo$@ /c $<
199<<
200