]> git.saurik.com Git - wxWidgets.git/blob - src/makemsc.env
registry based implementation of wxConfig (wxRegConfig)
[wxWidgets.git] / src / makemsc.env
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
20 WXDIR = $(WXWIN)
21 WXINC = $(WXDIR)\include
22
23 WXLIB=$(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib
24
25 # Suffixes
26 OBJSUFF=obj
27 SRCSUFF=cpp
28
29 INC=/I$(WXDIR)\include
30
31 # Set this to nothing if using MS C++ 7
32 ZOPTION=/Z7
33
34 !ifndef FINAL
35 FINAL=0
36 !endif
37
38 !ifndef DLL
39 DLL=0
40 !endif
41
42 !ifndef DEBUG
43 DEBUG=0
44 !endif
45
46 OPTIONS=
47
48 !if "$(FINAL)" == "0"
49 OPT = /Od /Gy
50 DEBUG_FLAGS= /Zi $(ZOPTION)
51 LINK_DEBUG_FLAGS=/CO
52 !else
53 OPT = /Od /Gy # Note: /Ox or /Os crash the compiler or samples
54 DEBUG_FLAGS=
55 LINK_DEBUG_FLAGS=
56 !endif
57
58 LIBS=$(WXLIB) $(EXTRALIBS) oldnames libw llibcew commdlg ddeml shell mmsystem $(WXDIR)\src\msw\ctl3d\msvc\ctl3dv2.lib
59
60 !if "$(DLL)" == "0"
61 PCH=WX.PCH
62 PRECOMP=/YuWX/WXPREC.H /Fp$(WXDIR)\src\msw\$(PCH)
63 CPPFLAGS= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /DDEBUG=$(DEBUG) /AL /Gt4 /Gx- /W4 /G2sw $(OPT) /D__WINDOWS__ $(PRECOMP)
64 CPPFLAGS2= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /DDEBUG=$(DEBUG) /AL /Gt4 /Gx- /W4 /G2sw $(OPT) /D__WINDOWS__
65 LINKFLAGS=$(LINK_DEBUG_FLAGS) /NOD /SEG:512 /ONERROR:NOEXE
66 DUMMY=dummy
67 !else
68 PCH=WX.PCH
69 PRECOMP=/YuWX/WXPREC.H /Fp$(WXDIR)\src\msw\$(PCH)
70 CPPFLAGS= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /AL /Gt4 /Gx- /W4 /G2s /GD $(OPT) /D__WINDOWS__ $(PRECOMP)
71 CPPFLAGS2= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /AL /Gt4 /Gx- /W4 /G2s /GD $(OPT) /D__WINDOWS__
72 LINKFLAGS=$(LINK_DEBUG_FLAGS) /NOD /SEG:512 /ONERROR:NOEXE
73 DUMMY=dummydll
74 !endif
75