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