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