]> git.saurik.com Git - wxWidgets.git/blame - src/makemsc.env
no changes, just corrected the comment for wxConvLocal
[wxWidgets.git] / src / makemsc.env
CommitLineData
f0b3249b
JS
1#
2# File: makemsc.env
3# Author: Julian Smart
4# Created: 1993
5# Updated:
4a9dba0e 6# Copyright:
f0b3249b
JS
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
0e528b99 23WXLIB=$(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib $(WXDIR)\lib\wx5.lib
f0b3249b
JS
24
25# Suffixes
26OBJSUFF=obj
27SRCSUFF=cpp
28
2996bcde
PA
29#INC=/I$(WXDIR)\include
30INC=-I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/src/zlib -I$(WXDIR)/src/jpeg $(EXTRAINC)
f0b3249b
JS
31
32# Set this to nothing if using MS C++ 7
33ZOPTION=/Z7
34
35!ifndef FINAL
36FINAL=0
37!endif
38
39!ifndef DLL
40DLL=0
41!endif
42
f0b3249b
JS
43OPTIONS=
44
45!if "$(FINAL)" == "0"
46OPT = /Od /Gy
47DEBUG_FLAGS= /Zi $(ZOPTION)
48LINK_DEBUG_FLAGS=/CO
49!else
50OPT = /Od /Gy # Note: /Ox or /Os crash the compiler or samples
51DEBUG_FLAGS=
52LINK_DEBUG_FLAGS=
53!endif
54
ace03f87 55LIBS=$(WXLIB) $(EXTRALIBS) oldnames libw llibcew commdlg ddeml shell mmsystem ole2 $(WXDIR)\lib\msvc15\ctl3dv2.lib
f0b3249b
JS
56
57!if "$(DLL)" == "0"
58PCH=WX.PCH
59PRECOMP=/YuWX/WXPREC.H /Fp$(WXDIR)\src\msw\$(PCH)
34138703
JS
60CPPFLAGS= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /DWXDEBUG=1 /D__WXDEBUG__ /AL /Gt4 /Gx- /W4 /G2sw $(OPT) /D__WXMSW__ /D__WINDOWS__ $(PRECOMP)
61CPPFLAGS2= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /DWXDEBUG=1 /D__WXDEBUG__ /AL /Gt4 /Gx- /W4 /G2sw $(OPT) /D__WXMSW__ /D__WINDOWS__
f0b3249b
JS
62LINKFLAGS=$(LINK_DEBUG_FLAGS) /NOD /SEG:512 /ONERROR:NOEXE
63DUMMY=dummy
64!else
65PCH=WX.PCH
66PRECOMP=/YuWX/WXPREC.H /Fp$(WXDIR)\src\msw\$(PCH)
34138703
JS
67CPPFLAGS= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /AL /Gt4 /Gx- /W4 /G2s /GD $(OPT) /D__WXMSW__ /D__WINDOWS__$(PRECOMP)
68CPPFLAGS2= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /AL /Gt4 /Gx- /W4 /G2s /GD $(OPT) /D__WXMSW__ /D__WINDOWS__
f0b3249b
JS
69LINKFLAGS=$(LINK_DEBUG_FLAGS) /NOD /SEG:512 /ONERROR:NOEXE
70DUMMY=dummydll
71!endif
72