source: trunk/make/setup.os2prfemx.mk@ 9138

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

rc/rc16 toolkit issue.

File size: 3.9 KB
Line 
1# $Id: setup.os2prfemx.mk,v 1.7 2002-08-27 03:58:01 bird Exp $
2
3# ---OS2, PROFILE, EMX----------------------------
4ENV_NAME="OS/2, Profile, EMX/GCC Compiler"
5ENV_STATUS=OK
6!if "$(ENV_ENVS)" == ""
7ENV_ENVS=vac308 emx emxpgcc
8!else
9ENV_ENVS_FORCE=vac308 emx emxpgcc
10!endif
11SPACE=_
12!undef ENV_16BIT
13
14
15#
16# Make sure ilink finds the libraries.
17#
18!if [set LIB=$(PATH_EMX)\lib\mt;$(LIBRARY_PATH);$(LIB)]
19!endif
20
21
22#
23# Include some shared standard stuff: ALP, VAC optional stuff.
24#
25!include $(PATH_MAKE)\setup.os2prfalp.mk
26!include $(PATH_MAKE)\setup.os2prfrc.mk
27!include $(PATH_MAKE)\setup.os2prfwrc.mk
28!include $(PATH_MAKE)\setup.optional.emx.mk
29
30
31#
32# The tools
33#
34AR=ilib.exe
35CC=gcc.exe
36CXX=gcc.exe
37LINK=ilink.exe
38IMPLIB=implib.exe
39
40
41#
42# The flags
43#
44AR_FLAGS=/nologo /noignorecase
45AR_CMD=$(AR) $(AR_FLAGS) @"$(TARGET_LNK)"
46AR_LNK1= "$(@R).$(EXT_LIB)"
47AR_LNK2=y
48_AR_LNK3= +"$(TARGET_OBJS: ="&^
49 +")"
50AR_LNK3= $(_AR_LNK3:+""&^
51=)
52AR_LNK4= "$(@R).lst";
53
54
55CC_FLAGS=-c -DDEBUG -DOS2 -D__32BIT__ -DMODEL=FLAT -Zomf -Wall -Wstrict-prototypes -Wno-trigraphs \
56 -fno-common -march=i586 -g $(_CC_OPTIONAL) \
57 $(CC_DEFINES:/D=-D) $(ALL_DEFINES:/D=-D) $(BUILD_DEFINES:/D=-D) $(CC_INCLUDES:^;= -I) $(ALL_INCLUDES:^;= -I) -I$(PATH_INCLUDES:^;= -I)
58CC_FLAGS_EXE=$(CC_FLAGS: = ) -Zmt -Zexe
59CC_FLAGS_DLL=$(CC_FLAGS: = ) -Zmt -Zdll
60CC_FLAGS_SYS=$(CC_FLAGS: = ) -DRING0 -mno-probe -Zdll -Zno-rte
61CC_FLAGS_VDD=$(CC_FLAGS_SYS: = )
62CC_FLAGS_IFS=$(CC_FLAGS_SYS: = ) -Zdll
63CC_OBJ_OUT=-o$(SPACE:_= )
64#CC_LST_OUT=-S -o$(SPACE:_= )
65CC_PC_2_STDOUT=-C -E
66CC_AS_2_FILE=-S -o$(SPACE:_= )
67
68
69CXX_FLAGS=-c -DDEBUG -DOS2 -D__32BIT__ -DMODEL=FLAT -Zomf -Wall -Wstrict-prototypes -Wno-trigraphs \
70 -fno-common -march=i586 -g $(_CXX_OPTIONAL) \
71 $(CXX_DEFINES:/D=-D) $(ALL_DEFINES:/D=-D) $(BUILD_DEFINES:/D=-D) $(CXX_INCLUDES:^;= -I) $(ALL_INCLUDES:^;= -I) -I$(PATH_INCLUDES:^;= -I)
72CXX_FLAGS_EXE=$(CXX_FLAGS: = ) -Zmt -Zexe
73CXX_FLAGS_DLL=$(CXX_FLAGS: = ) -Zmt -Zdll
74CXX_FLAGS_SYS=$(CXX_FLAGS: = ) -DRING0 -mno-probe -Zno-rte -fno-exceptions
75CXX_FLAGS_VDD=$(CXX_FLAGS_SYS: = )
76CXX_FLAGS_IFS=$(CXX_FLAGS_SYS: = ) -Zdll
77CXX_OBJ_OUT=-o$(SPACE:_= )
78#CXX_LST_OUT=-S -o$(SPACE:_= )
79CXX_PC_2_STDOUT=-C -E
80CXX_AS_2_FILE=-S -o$(SPACE:_= )
81
82!if "$(CC_AS_CXX)" != ""
83! if "$(CXX_AS_CC)" != ""
84! if [@(ECHO) $(CLRERR)Error: Do you think you're smart? CC_AS_CXX and CXX_AS_CC is mutual execlusive!$(CLRRST)]
85! endif
86! error
87! endif
88CC=g++
89CC_FLAGS_EXE=$(CXX_FLAGS_EXE)
90CC_FLAGS_DLL=$(CXX_FLAGS_DLL)
91CC_FLAGS_SYS=$(CXX_FLAGS_SYS)
92CC_FLAGS_VDD=$(CXX_FLAGS_VDD)
93CC_FLAGS_IFS=$(CXX_FLAGS_IFS)
94!endif
95!if "$(CXX_AS_CC)" != ""
96! if [@(ECHO) $(CLRERR)Error: CXX_AS_CC is not supported by this compiler!$(CLRRST)]
97! endif
98! error
99!endif
100
101IMPLIB_FLAGS=/NOI /Nologo
102
103LINK_FLAGS=/nofree /nologo /de /map /linenumbers /NOIgnorecase /NOE /NOD /PACKCODE /PACKDATA
104LINK_FLAGS_EXE=$(LINK_FLAGS) /EXECutable /STACK:$(TARGET_STACKSIZE)
105LINK_FLAGS_DLL=$(LINK_FLAGS) /DLL
106LINK_FLAGS_SYS=$(LINK_FLAGS) /PDD /Align:16
107LINK_FLAGS_VDD=$(LINK_FLAGS) /VDD /Align:16
108LINK_FLAGS_IFS=$(LINK_FLAGS_DLL)
109LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) crt0.obj @$(TARGET_LNK)
110LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) dll0.obj @$(TARGET_LNK)
111LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) crt0.obj @$(TARGET_LNK)
112LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) crt0.obj @$(TARGET_LNK)
113LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) dll0.obj @$(TARGET_LNK)
114LINK_LNK1=$(TARGET_OBJS: =+^
115),
116LINK_LNK2=$(TARGET),
117LINK_LNK3=$(TARGET_MAP),
118LINK_LNK4=$(TARGET_LIBS: =+^
119) end.lib,
120LINK_LNK5=$(TARGET_DEF_LINK)
121
122
123#
124# Libraries and object files.
125#
126LIB_OS = os2386.lib
127LIB_C_OBJ = c_alias.lib gcc.lib g.lib c.lib c_app.lib c.lib gcc.lib emx.lib os2.lib emx2.lib
128LIB_C_DLL = c_alias.lib c_static.lib c_import.lib os2.lib emx2.lib
129LIB_C_RTDLL = c_alias.lib c_static.lib emx2.lib
130LIB_C_NRE = c_alias.lib gcc.lib g.lib c.lib c_dllnrt.lib os2.lib
131LIB_C_DMNGL =
132OBJ_PROFILE =
133
134# ---OS2, PROFILE, EMX----------------------------
135
Note: See TracBrowser for help on using the repository browser.