]> git.saurik.com Git - wxWidgets.git/blob - src/makeva.env
unused parameter warnings suppressed
[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 OS2LIBFLAGS=/NOL /NOE
17 OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
18
19 # Change this to your WXWIN directory
20 WXDIR=h:\dev\Wx2\wxwindows
21
22 WXSRC=$(WXDIR)\src\os2
23 WXINC=$(WXDIR)\include
24 WXBASESRC=$(WXDIR)\src\common
25 EXTRAINC=$(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"
60 EXTRADLLFLAGS=/DWXUSINGDLL=1
61 EXTRALNKFLAGS=/EXEC
62 !endif
63
64 !if "$(WXMAKINGDLL)" == "1"
65 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
66 EXTRALNKFLAGS=/DLL
67 !endif
68
69 !if "$(WXMAKINGDLL)" == "0" && "$(DLL)" == "1"
70 EXTRADLLFLAGS=
71 EXTRALNKFLAGS=/EXEC
72 !endif
73
74 !ifndef FINAL
75 FINAL=0
76 DEBUG=1
77 !endif
78
79 !ifndef DLL
80 DLL=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"
88 WXLIBNAME=wx200
89 !else
90 WXLIBNAME=wx
91 !endif
92
93 !if "$(NEW_WXLIBNAME)" != ""
94 WXLIBNAME=$(NEW_WXLIBNAME)
95 !endif
96
97 !if "$(FINAL)" == "1"
98 D=Release
99 !else
100 D=Debug
101 !endif
102
103 WXLIB=$(WXDIR)\lib\$(WXLIBNAME).lib
104
105 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
106 D=$(D)DLL
107 !endif
108
109
110 INC=-I$(WXINC) -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib -I$(EXTRAINC)
111 LIBS = $(EXTRALIBS) $(WXLIB) $(WINLIBS) $(WXDIR)\lib\jpeg.lib
112
113 MAKEPRECOMP=/FiWX/WXPREC.H
114 OPTIONS=
115
116 !if "$(FINAL)" == "0"
117 OPT =
118 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
119 LINK_DEBUG_FLAGS=/DEBUG
120 CRTFLAG=/Gm /Gd
121 !else
122 # /O1 - smallest code
123 # /O2 - fastest code
124 OPT = /O+ /Oc /G5
125 DEBUG_FLAGS=
126 LINK_DEBUG_FLAGS=/RELEASE
127 CRTFLAG=/Gm /Gd
128 !endif
129
130 !if "$(DLL)" == "0"
131
132 !if "$(NOPCH)" == "1"
133 PCH=
134 PRECOMP=
135 MAKEPRECOMP=
136 !else
137 PCH=$(WXLIBNAME).pch
138 PRECOMP=/Si$(PCH)
139 MAKEPRECOMP=/Fi$(PCH)
140 !endif
141
142 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
143 # If you don't include wxprec.h, use CPPFLAGS2
144 CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
145 LINKFLAGS=$(LINK_DEBUG_FLAGS) $(OS2LINKFLAGS) $(EXTRALNKFLAGS)
146 DUMMY=dummy
147
148 !else
149
150 !if "$(WXMAKINGDLL)" == "1"
151 PCH=$(WXLIBNAME).pch
152 DUMMY=dummydll
153 !else
154 PCH=$(WXLIBNAME).pch
155 DUMMY=dummy
156 !endif
157
158 PRECOMP=/SiWX/WXPREC.H
159 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
160 CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
161 LINKFLAGS=$(LINK_DEBUG_FLAGS) $(OS2LINKFLAGS) $(EXTRALNKFLAGS)
162 !endif
163
164 DUMMYOBJ=$(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