source: trunk/make/setup.os2debemx.mk@ 8358

Last change on this file since 8358 was 8358, checked in by bird, 23 years ago

Initial config.

File size: 3.3 KB
Line 
1# $Id: setup.os2debemx.mk,v 1.1 2002-04-30 22:40:17 bird Exp $
2
3# ---OS2, DEBUG, EMX----------------------------
4ENV_NAME="OS/2, Debug, EMX/GCC Compiler"
5ENV_STATUS=OK
6!if "$(ENV_ENVS)" == ""
7ENV_ENVS=vac308 emx
8!else
9ENV_ENVS_FORCE=vac308 emx
10!endif
11SPACE=_
12
13
14#
15# Make sure ilink finds the libraries.
16#
17!if [set LIB=$(PATH_EMX)\lib\mt;$(LIBRARY_PATH);$(LIB)]
18!endif
19
20
21#
22# Include some shared standard stuff: ALP, VAC optional stuff.
23#
24!include $(PATH_MAKE)\setup.os2debalp.mk
25!include $(PATH_MAKE)\setup.optional.emx.mk
26
27
28#
29# The tools
30#
31AR=ilib.exe
32CC=gcc.exe
33CXX=gcc.exe
34LINK=ilink.exe
35IMPLIB=implib.exe
36RC=rc.exe
37RL=rc.exe
38EXEPACK=lxlite.exe
39
40
41#
42# The flags
43#
44AR_FLAGS=/nologo /noignorecase
45AR_CMD=$(AR) $(AR_FLAGS) $@ @$(TARGET_LNK)
46_AR_LNK1= "$(TARGET_OBJS: ="&^
47")"
48AR_LNK1= $(_AR_LNK1:""=)
49AR_LNK2= $(@R).lst
50
51CC_FLAGS=-c -DDEBUG -DOS2 -D__32BIT__ -DMODEL=FLAT -Zomf -Wall -Wstrict-prototypes -Wno-trigraphs \
52 -fno-common -march=i586 -g $(_CC_OPTIONAL) \
53 $(CC_DEFINES:/D=-D) $(ALL_DEFINES:/D=-D) $(BUILD_DEFINES:/D=-D) $(CC_INCLUDES:^;= -I) $(ALL_INCLUDES:^;= -I) -I$(PATH_INCLUDES:^;= -I)
54CC_FLAGS_EXE=$(CC_FLAGS: = ) -Zmt -Zexe
55CC_FLAGS_DLL=$(CC_FLAGS: = ) -Zmt -Zdll
56CC_FLAGS_SYS=$(CC_FLAGS: = ) -DRING0 -mno-probe -Zdll -Zno-rte
57CC_FLAGS_VDD=$(CC_FLAGS_SYS: = )
58CC_FLAGS_IFS=$(CC_FLAGS_SYS: = ) -Zdll
59CC_OBJ_OUT=-o$(SPACE:_= )
60#CC_LST_OUT=-S -o$(SPACE:_= )
61CC_PC_2_STDOUT=-C -E
62
63
64CXX_FLAGS=-c -DDEBUG -DOS2 -D__32BIT__ -DMODEL=FLAT -Zomf -Wall -Wstrict-prototypes -Wno-trigraphs \
65 -fno-common -march=i586 -g $(_CXX_OPTIONAL) \
66 $(CXX_DEFINES:/D=-D) $(ALL_DEFINES:/D=-D) $(BUILD_DEFINES:/D=-D) $(CXX_INCLUDES:^;= -I) $(ALL_INCLUDES:^;= -I) -I$(PATH_INCLUDES:^;= -I)
67CXX_FLAGS_EXE=$(CXX_FLAGS: = ) -Zmt -Zexe
68CXX_FLAGS_DLL=$(CXX_FLAGS: = ) -Zmt -Zdll
69CXX_FLAGS_SYS=$(CXX_FLAGS: = ) -DRING0 -mno-probe -Zno-rte -fno-exceptions
70CXX_FLAGS_VDD=$(CXX_FLAGS_SYS: = )
71CXX_FLAGS_IFS=$(CXX_FLAGS_SYS: = ) -Zdll
72CXX_OBJ_OUT=-o$(SPACE:_= )
73#CXX_LST_OUT=-S -o$(SPACE:_= )
74CXX_PC_2_STDOUT=-C -E
75
76IMPLIB_FLAGS=/NOI /Nologo
77
78LINK_FLAGS=/nofree /nologo /de /map /linenumbers /NOIgnorecase /NOE /NOD /Optfunc /PACKCODE /PACKDATA
79LINK_FLAGS_EXE=$(LINK_FLAGS) /EXECutable /STACK:$(TARGET_STACKSIZE)
80LINK_FLAGS_DLL=$(LINK_FLAGS) /DLL
81LINK_FLAGS_SYS=$(LINK_FLAGS) /PDD /Align:16
82LINK_FLAGS_VDD=$(LINK_FLAGS) /VDD /Align:16
83LINK_FLAGS_IFS=$(LINK_FLAGS_DLL)
84LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) crt0.obj @$(TARGET_LNK)
85LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) dll0.obj @$(TARGET_LNK)
86LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) crt0.obj @$(TARGET_LNK)
87LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) crt0.obj @$(TARGET_LNK)
88LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) dll0.obj @$(TARGET_LNK)
89LINK_LNK1=$(TARGET_OBJS: =+^
90),
91LINK_LNK2=$(TARGET),
92LINK_LNK3=$(TARGET_MAP),
93LINK_LNK4=$(TARGET_LIBS: =+^
94) end.lib,
95LINK_LNK5=$(TARGET_DEF_LINK)
96
97RC_FLAGS=-r -n -i $(PATH_INCLUDE:;= -i ) $(RC_DEFINES) $(RC_INCLUDES)
98RL_FLAGS=-x2 -n
99
100#
101# Libraries and object files.
102#
103LIB_OS = os2386.lib
104LIB_C_OBJ = c_alias.lib gcc.lib g.lib c.lib c_app.lib c.lib gcc.lib emx.lib os2.lib emx2.lib
105LIB_C_DLL = c_alias.lib c_static.lib c_import.lib os2.lib emx2.lib
106LIB_C_RTDLL = c_alias.lib c_static.lib emx2.lib
107LIB_C_NRE = c_alias.lib gcc.lib g.lib c.lib c_dllnrt.lib os2.lib
108LIB_C_DMNGL =
109OBJ_PROFILE =
110
111# ---OS2, DEBUG, EMX----------------------------
112
Note: See TracBrowser for help on using the repository browser.