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

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

Separated ilink va3xx setup into it's own three config files.

File size: 3.1 KB
Line 
1# $Id: setup.os2prfemx.mk,v 1.8 2002-08-28 03:42:44 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_LD_LAST_LIB = end.$(EXT_LIB)
29!include $(PATH_MAKE)\setup.os2prfilink.mk
30!include $(PATH_MAKE)\setup.optional.emx.mk
31
32
33#
34# The tools
35#
36AR=ilib.exe
37CC=gcc.exe
38CXX=gcc.exe
39IMPLIB=implib.exe
40
41
42#
43# The flags
44#
45AR_FLAGS=/nologo /noignorecase
46AR_CMD=$(AR) $(AR_FLAGS) @"$(TARGET_LNK)"
47AR_LNK1= "$(@R).$(EXT_LIB)"
48AR_LNK2=y
49_AR_LNK3= +"$(TARGET_OBJS: ="&^
50 +")"
51AR_LNK3= $(_AR_LNK3:+""&^
52=)
53AR_LNK4= "$(@R).lst";
54
55
56CC_FLAGS=-c -DDEBUG -DOS2 -D__32BIT__ -DMODEL=FLAT -Zomf -Wall -Wstrict-prototypes -Wno-trigraphs \
57 -fno-common -march=i586 -g $(_CC_OPTIONAL) \
58 $(CC_DEFINES:/D=-D) $(ALL_DEFINES:/D=-D) $(BUILD_DEFINES:/D=-D) $(CC_INCLUDES:^;= -I) $(ALL_INCLUDES:^;= -I) -I$(PATH_INCLUDES:^;= -I)
59CC_FLAGS_EXE=$(CC_FLAGS: = ) -Zmt -Zexe
60CC_FLAGS_DLL=$(CC_FLAGS: = ) -Zmt -Zdll
61CC_FLAGS_SYS=$(CC_FLAGS: = ) -DRING0 -mno-probe -Zdll -Zno-rte
62CC_FLAGS_VDD=$(CC_FLAGS_SYS: = )
63CC_FLAGS_IFS=$(CC_FLAGS_SYS: = ) -Zdll
64CC_OBJ_OUT=-o$(SPACE:_= )
65#CC_LST_OUT=-S -o$(SPACE:_= )
66CC_PC_2_STDOUT=-C -E
67CC_AS_2_FILE=-S -o$(SPACE:_= )
68
69
70CXX_FLAGS=-c -DDEBUG -DOS2 -D__32BIT__ -DMODEL=FLAT -Zomf -Wall -Wstrict-prototypes -Wno-trigraphs \
71 -fno-common -march=i586 -g $(_CXX_OPTIONAL) \
72 $(CXX_DEFINES:/D=-D) $(ALL_DEFINES:/D=-D) $(BUILD_DEFINES:/D=-D) $(CXX_INCLUDES:^;= -I) $(ALL_INCLUDES:^;= -I) -I$(PATH_INCLUDES:^;= -I)
73CXX_FLAGS_EXE=$(CXX_FLAGS: = ) -Zmt -Zexe
74CXX_FLAGS_DLL=$(CXX_FLAGS: = ) -Zmt -Zdll
75CXX_FLAGS_SYS=$(CXX_FLAGS: = ) -DRING0 -mno-probe -Zno-rte -fno-exceptions
76CXX_FLAGS_VDD=$(CXX_FLAGS_SYS: = )
77CXX_FLAGS_IFS=$(CXX_FLAGS_SYS: = ) -Zdll
78CXX_OBJ_OUT=-o$(SPACE:_= )
79#CXX_LST_OUT=-S -o$(SPACE:_= )
80CXX_PC_2_STDOUT=-C -E
81CXX_AS_2_FILE=-S -o$(SPACE:_= )
82
83!if "$(CC_AS_CXX)" != ""
84! if "$(CXX_AS_CC)" != ""
85! if [@(ECHO) $(CLRERR)Error: Do you think you're smart? CC_AS_CXX and CXX_AS_CC is mutual execlusive!$(CLRRST)]
86! endif
87! error
88! endif
89CC=g++
90CC_FLAGS_EXE=$(CXX_FLAGS_EXE)
91CC_FLAGS_DLL=$(CXX_FLAGS_DLL)
92CC_FLAGS_SYS=$(CXX_FLAGS_SYS)
93CC_FLAGS_VDD=$(CXX_FLAGS_VDD)
94CC_FLAGS_IFS=$(CXX_FLAGS_IFS)
95!endif
96!if "$(CXX_AS_CC)" != ""
97! if [@(ECHO) $(CLRERR)Error: CXX_AS_CC is not supported by this compiler!$(CLRRST)]
98! endif
99! error
100!endif
101
102IMPLIB_FLAGS=/NOI /Nologo
103
104
105#
106# Libraries and object files.
107#
108LIB_OS = os2386.lib
109LIB_C_OBJ = c_alias.lib gcc.lib g.lib c.lib c_app.lib c.lib gcc.lib emx.lib os2.lib emx2.lib
110LIB_C_DLL = c_alias.lib c_static.lib c_import.lib os2.lib emx2.lib
111LIB_C_RTDLL = c_alias.lib c_static.lib emx2.lib
112LIB_C_NRE = c_alias.lib gcc.lib g.lib c.lib c_dllnrt.lib os2.lib
113LIB_C_DMNGL =
114OBJ_PROFILE =
115
116# ---OS2, PROFILE, EMX----------------------------
117
Note: See TracBrowser for help on using the repository browser.