1# Time-stamp: <04/04/30 23:36:48 ptr>
2# $Id$
3
4# stuff not defined here: CXX, CC, DEFS_COMMON, CFLAGS_*, CXXFLAGS_*, OPT_COMMON
5
6LINK = link.exe
7RC = rc.exe
8
9!ifdef DEFS
10DEFS_REL = $(DEFS) $(DEFS_REL)
11DEFS_DBG = $(DEFS) $(DEFS_DBG)
12DEFS_STLDBG = $(DEFS) $(DEFS_STLDBG)
13DEFS_STATIC_REL = $(DEFS) $(DEFS_STATIC_REL)
14DEFS_STATIC_DBG = $(DEFS) $(DEFS_STATIC_DBG)
15DEFS_STATIC_STLDBG = $(DEFS) $(DEFS_STATIC_STLDBG)
16!endif
17!ifdef OPT
18OPT_REL = $(OPT) $(OPT_REL)
19OPT_DBG = $(OPT) $(OPT_DBG)
20OPT_STLDBG = $(OPT) $(OPT_STLDBG)
21OPT_STATIC_REL = $(OPT) $(OPT_STATIC_REL)
22OPT_STATIC_DBG = $(OPT) $(OPT_STATIC_DBG)
23OPT_STATIC_STLDBG = $(OPT) $(OPT_STATIC_STLDBG)
24!endif
25
26OUTPUT_OPTION = /Fo$@ /Fd"$(PDB_NAME_OUT)"
27OUTPUT_OPTION_DBG = /Fo$@ /Fd"$(PDB_NAME_OUT_DBG)"
28OUTPUT_OPTION_STLDBG = /Fo$@ /Fd"$(PDB_NAME_OUT_STLDBG)"
29OUTPUT_OPTION_STATIC = /Fo$@ /Fd"$(A_PDB_NAME_OUT)"
30OUTPUT_OPTION_STATIC_DBG = /Fo$@ /Fd"$(A_PDB_NAME_OUT_DBG)"
31OUTPUT_OPTION_STATIC_STLDBG = /Fo$@ /Fd"$(A_PDB_NAME_OUT_STLDBG)"
32LINK_OUTPUT_OPTION = /OUT:$@
33RC_OUTPUT_OPTION = /fo $@
34RC_OUTPUT_OPTION_DBG = /fo $@
35RC_OUTPUT_OPTION_STLDBG = /fo $@
36
37DEFS_REL = $(DEFS_REL) $(DEFS_COMMON)
38DEFS_STATIC_REL = $(DEFS_STATIC_REL) $(DEFS_COMMON)
39DEFS_DBG = $(DEFS_DBG) $(DEFS_COMMON)
40DEFS_STATIC_DBG = $(DEFS_STATIC_DBG) $(DEFS_COMMON)
41DEFS_STLDBG = $(DEFS_STLDBG) $(DEFS_COMMON)
42DEFS_STATIC_STLDBG = $(DEFS_STATIC_STLDBG) $(DEFS_COMMON)
43CPPFLAGS_REL = $(DEFS_REL) $(INCLUDES)
44CPPFLAGS_STATIC_REL = $(DEFS_STATIC_REL) $(INCLUDES)
45CPPFLAGS_DBG = $(DEFS_DBG) $(INCLUDES)
46CPPFLAGS_STATIC_DBG = $(DEFS_STATIC_DBG) $(INCLUDES)
47CPPFLAGS_STLDBG = $(DEFS_STLDBG) $(INCLUDES)
48CPPFLAGS_STATIC_STLDBG = $(DEFS_STATIC_STLDBG) $(INCLUDES)
49
50COMPILE_c_REL = $(CC) $(CFLAGS_REL) $(CPPFLAGS_REL) $(TARGET_ARCH) /c
51COMPILE_c_STATIC_REL = $(CC) $(CFLAGS_STATIC_REL) $(CPPFLAGS_STATIC_REL) $(TARGET_ARCH) /c
52COMPILE_c_DBG = $(CC) $(CFLAGS_DBG) $(CPPFLAGS_DBG) $(TARGET_ARCH) /c
53COMPILE_c_STATIC_DBG = $(CC) $(CFLAGS_STATIC_DBG) $(CPPFLAGS_STATIC_DBG) $(TARGET_ARCH) /c
54COMPILE_c_STLDBG = $(CC) $(CFLAGS_STLDBG) $(CPPFLAGS_STLDBG) $(TARGET_ARCH) /c
55COMPILE_c_STATIC_STLDBG = $(CC) $(CFLAGS_STATIC_STLDBG) $(CPPFLAGS_STATIC_STLDBG) $(TARGET_ARCH) /c
56COMPILE_cc_REL = $(CXX) $(CXXFLAGS_REL) $(CPPFLAGS_REL) $(TARGET_ARCH) /c
57COMPILE_cc_STATIC_REL = $(CXX) $(CXXFLAGS_STATIC_REL) $(CPPFLAGS_STATIC_REL) $(TARGET_ARCH) /c
58COMPILE_cc_DBG = $(CXX) $(CXXFLAGS_DBG) $(CPPFLAGS_DBG) $(TARGET_ARCH) /c
59COMPILE_cc_STATIC_DBG = $(CXX) $(CXXFLAGS_STATIC_DBG) $(CPPFLAGS_STATIC_DBG) $(TARGET_ARCH) /c
60COMPILE_cc_STLDBG = $(CXX) $(CXXFLAGS_STLDBG) $(CPPFLAGS_STLDBG) $(TARGET_ARCH) /c
61COMPILE_cc_STATIC_STLDBG = $(CXX) $(CXXFLAGS_STATIC_STLDBG) $(CPPFLAGS_STATIC_STLDBG) $(TARGET_ARCH) /c
62COMPILE_rc_REL = $(RC) $(RC_FLAGS_REL) /D "BUILD_INFOS=$(CPPFLAGS_REL)"
63COMPILE_rc_STATIC_REL = $(RC) $(RC_FLAGS_REL) /D "BUILD_INFOS=$(CPPFLAGS_STATIC_REL)"
64COMPILE_rc_DBG = $(RC) $(RC_FLAGS_DBG) /DBUILD=d /D "BUILD_INFOS=$(CPPFLAGS_DBG)"
65COMPILE_rc_STATIC_DBG = $(RC) $(RC_FLAGS_DBG) /DBUILD=d /D "BUILD_INFOS=$(CPPFLAGS_STATIC_DBG)"
66COMPILE_rc_STLDBG = $(RC) $(RC_FLAGS_STLDBG) /DBUILD=stld /D "BUILD_INFOS=$(CPPFLAGS_STLDBG) /D_STLP_DEBUG"
67COMPILE_rc_STATIC_STLDBG = $(RC) $(RC_FLAGS_STLDBG) /DBUILD=stld /D "BUILD_INFOS=$(CPPFLAGS_STATIC_STLDBG) /D_STLP_DEBUG"
68LINK_cc_REL = $(LINK) /nologo /incremental:no /debug /pdb:"$(PDB_NAME_OUT)" $(LDFLAGS_REL)
69LINK_cc_DBG = $(LINK) /nologo /incremental:no /debug /pdb:"$(PDB_NAME_OUT_DBG)" $(LDFLAGS_DBG)
70LINK_cc_STLDBG = $(LINK) /nologo /incremental:no /debug /pdb:"$(PDB_NAME_OUT_STLDBG)" $(LDFLAGS_STLDBG)
71LINK_cc_A_REL = $(LINK) /nologo /incremental:no /debug /pdb:"$(A_PDB_NAME_OUT)" $(LDFLAGS_REL)
72LINK_cc_A_DBG = $(LINK) /nologo /incremental:no /debug /pdb:"$(A_PDB_NAME_OUT_DBG)" $(LDFLAGS_DBG)
73LINK_cc_A_STLDBG = $(LINK) /nologo /incremental:no /debug /pdb:"$(A_PDB_NAME_OUT_STLDBG)" $(LDFLAGS_STLDBG)
74
75CDEPFLAGS = /FD /E
76CCDEPFLAGS = /FD /E
77
78# STLport DEBUG mode specific defines
79DEFS_STLDBG = $(DEFS_STLDBG) /D_DEBUG /D_STLP_DEBUG /DDEBUG
80DEFS_DBG = $(DEFS_DBG) /D_DEBUG /DDEBUG
81DEFS_REL = $(DEFS_REL) /DNDEBUG
82DEFS_STATIC_STLDBG = $(DEFS_STATIC_STLDBG) /D_DEBUG /D_STLP_DEBUG /DDEBUG /D_STLP_NO_FORCE_INSTANTIATE
83DEFS_STATIC_DBG = $(DEFS_STATIC_DBG) /D_DEBUG /DDEBUG /D_STLP_NO_FORCE_INSTANTIATE
84DEFS_STATIC_REL = $(DEFS_STATIC_REL) /DNDEBUG /D_STLP_NO_FORCE_INSTANTIATE
85
86# optimization and debug compiler flags
87OPT_REL = $(OPT_REL) /Zi /O2 $(OPT_COMMON)
88OPT_DBG = $(OPT_DBG) /Zi /Od $(OPT_COMMON)
89OPT_STLDBG = $(OPT_STLDBG) /Zi /Od $(OPT_COMMON)
90OPT_STATIC_REL = $(OPT_STATIC_REL) /Zi /O2 $(OPT_COMMON)
91OPT_STATIC_DBG = $(OPT_STATIC_DBG) /Zi /Od $(OPT_COMMON)
92OPT_STATIC_STLDBG = $(OPT_STATIC_STLDBG) /Zi /Od $(OPT_COMMON)
93