]> git.saurik.com Git - wxWidgets.git/blame - src/makemsc.env
ODBC updates (it almost works now)
[wxWidgets.git] / src / makemsc.env
CommitLineData
f0b3249b
JS
1#
2# File: makemsc.env
3# Author: Julian Smart
4# Created: 1993
5# Updated:
6# Copyright: (c) 1993, AIAI, University of Edinburgh
7#
8# "%W% %G%"
9#
10# Include file for MS VC++ makefiles
11# Arguments:
12#
13# FINAL=1 argument to nmake to build version with no debugging info.
14# DLL=1 builds a library (wxdll.lib) suitable for creating DLLs.
15#
16# Set WXDIR to the wxWindows directory if env. variable WXWIN not set.
17# From your specific makefile, set EXTRAFLAGS to add flags to CPPFLAGS,
18# such as extra include directories or defines.
19
20WXDIR = $(WXWIN)
21WXINC = $(WXDIR)\include
22
23WXLIB=$(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib
24
25# Suffixes
26OBJSUFF=obj
27SRCSUFF=cpp
28
29INC=/I$(WXDIR)\include
30
31# Set this to nothing if using MS C++ 7
32ZOPTION=/Z7
33
34!ifndef FINAL
35FINAL=0
36!endif
37
38!ifndef DLL
39DLL=0
40!endif
41
f0b3249b
JS
42OPTIONS=
43
44!if "$(FINAL)" == "0"
45OPT = /Od /Gy
46DEBUG_FLAGS= /Zi $(ZOPTION)
47LINK_DEBUG_FLAGS=/CO
48!else
49OPT = /Od /Gy # Note: /Ox or /Os crash the compiler or samples
50DEBUG_FLAGS=
51LINK_DEBUG_FLAGS=
52!endif
53
1e6d9499 54LIBS=$(WXLIB) $(EXTRALIBS) oldnames libw llibcew commdlg ddeml shell mmsystem ole2 $(WXDIR)\src\msw\ctl3d\msvc\ctl3dv2.lib
f0b3249b
JS
55
56!if "$(DLL)" == "0"
57PCH=WX.PCH
58PRECOMP=/YuWX/WXPREC.H /Fp$(WXDIR)\src\msw\$(PCH)
34138703
JS
59CPPFLAGS= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /DWXDEBUG=1 /D__WXDEBUG__ /AL /Gt4 /Gx- /W4 /G2sw $(OPT) /D__WXMSW__ /D__WINDOWS__ $(PRECOMP)
60CPPFLAGS2= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /DWXDEBUG=1 /D__WXDEBUG__ /AL /Gt4 /Gx- /W4 /G2sw $(OPT) /D__WXMSW__ /D__WINDOWS__
f0b3249b
JS
61LINKFLAGS=$(LINK_DEBUG_FLAGS) /NOD /SEG:512 /ONERROR:NOEXE
62DUMMY=dummy
63!else
64PCH=WX.PCH
65PRECOMP=/YuWX/WXPREC.H /Fp$(WXDIR)\src\msw\$(PCH)
34138703
JS
66CPPFLAGS= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /AL /Gt4 /Gx- /W4 /G2s /GD $(OPT) /D__WXMSW__ /D__WINDOWS__$(PRECOMP)
67CPPFLAGS2= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /AL /Gt4 /Gx- /W4 /G2s /GD $(OPT) /D__WXMSW__ /D__WINDOWS__
f0b3249b
JS
68LINKFLAGS=$(LINK_DEBUG_FLAGS) /NOD /SEG:512 /ONERROR:NOEXE
69DUMMY=dummydll
70!endif
71