]> git.saurik.com Git - wxWidgets.git/blob - src/makeva.env
no message
[wxWidgets.git] / src / makeva.env
1 #
2 # File: Makeva.env
3 # Author: David Webster
4 # Created: Wed Apr 17 08:36:42 1999
5 # Updated:
6 #
7 # VisualAge C++ V3.0 makefile include file
8 #
9
10 # Suffixes
11 OBJSUFF=obj
12 SRCSUFF=cpp
13
14 OS2FLAGS=/c /W3 /D__VISAGECPP__ /Ss /Q /N100
15 OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
16 OS2LIBFLAGS=/NOL /NOE
17
18 # Set an environment variable, WXWIN, to your WXWIN directory
19 WXDIR=$(WXWIN)
20
21 # Set to where your UPM and LAN libs are
22 UPMLIB=D:\MUGLIB
23 NETLIB=D:\IBMLAN\NETSRC\LIB
24
25 WXSRC=$(WXDIR)\src\os2
26 WXINC=$(WXDIR)\include
27 WXBASESRC=$(WXDIR)\src\common
28 EXTRAINC=$(WXDIR)\src\png
29 LINK=icc
30 RC=rc
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"
65 EXTRADLLFLAGS=/DWXUSINGDLL=1
66 EXTRALNKFLAGS=/EXEC
67 !endif
68
69 !if "$(WXMAKINGDLL)" == "1"
70 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
71 EXTRALNKFLAGS=/DLL
72 !endif
73
74 !if "$(WXMAKINGDLL)" == "0" && "$(DLL)" == "1"
75 EXTRADLLFLAGS=
76 EXTRALNKFLAGS=/EXEC
77 !endif
78
79 !ifndef FINAL
80 FINAL=0
81 DEBUG=1
82 !endif
83
84 !ifndef DLL
85 DLL=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"
93 WXLIBNAME=wx200
94 !else
95 WXLIBNAME=wx
96 !endif
97
98 !if "$(NEW_WXLIBNAME)" != ""
99 WXLIBNAME=$(NEW_WXLIBNAME)
100 !endif
101
102 !if "$(FINAL)" == "1"
103 D=RelseOS2
104 !else
105 D=DebugOS2
106 !endif
107
108 WXLIB=$(WXDIR)\lib\$(WXLIBNAME).lib
109
110 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
111 D=$(D)DLL
112 !endif
113
114
115 INC=-I$(WXINC) -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib -I$(EXTRAINC)
116 LINKLIBS=CPPOM30I.LIB CPPOOC3I.LIB OS2386.LIB $(UPMLIB)\UPM32.LIB $(NETLIB)\NETAPI32.LIB
117 EXTRALIBS=$(WXDIR)\lib\os2png.lib $(WXDIR)\lib\os2zlib.lib $(WXDIR)\lib\os2jpeg.lib $(WXDIR)\lib\os2xpm.lib
118 LIBS=$(WXLIB) $(EXTRALIBS)
119
120 MAKEPRECOMP=/FiWX/WXPREC.H
121 OPTIONS=
122
123 !if "$(FINAL)" == "0"
124 OPT =
125 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
126 LINK_DEBUG_FLAGS=/DEBUG
127 CRTFLAG=/Gm /Gd
128 !else
129 # /O1 - smallest code
130 # /O2 - fastest code
131 OPT = /O+ /Oc /G5
132 DEBUG_FLAGS=
133 LINK_DEBUG_FLAGS=/RELEASE
134 CRTFLAG=/Gm /Gd
135 !endif
136
137 !if "$(DLL)" == "0"
138
139 !if "$(NOPCH)" == "1"
140 PCH=
141 PRECOMP=
142 MAKEPRECOMP=
143 !else
144 PCH=$(WXLIBNAME).pch
145 PRECOMP=/Si$(PCH)
146 MAKEPRECOMP=/Fi$(PCH)
147 !endif
148
149 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
150 # If you don't include wxprec.h, use CPPFLAGS2
151 CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
152 LINKFLAGS=$(OS2LINKFLAGS) $(LINK_DEBUG_FLAGS) $(EXTRALNKFLAGS)
153 DUMMY=dummy
154
155 !else
156
157 !if "$(WXMAKINGDLL)" == "1"
158 PCH=$(WXLIBNAME).pch
159 DUMMY=dummydll
160 !else
161 PCH=$(WXLIBNAME).pch
162 DUMMY=dummy
163 !endif
164
165 PRECOMP=/SiWX/WXPREC.H
166 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
167 CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
168 LINKFLAGS=$(OS2LINKFLAGS) $(LINK_DEBUG_FLAGS) $(EXTRALNKFLAGS)
169 !endif
170
171 DUMMYOBJ=$(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