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