1 | # $Id: setup.os2prfemx.mk,v 1.1 2002-04-30 22:40:17 bird Exp $
|
---|
2 |
|
---|
3 | # ---OS2, PROFILE, EMX----------------------------
|
---|
4 | ENV_NAME="OS/2, Profile, EMX/GCC Compiler"
|
---|
5 | ENV_STATUS=OK
|
---|
6 | !if "$(ENV_ENVS)" == ""
|
---|
7 | ENV_ENVS=vac308 emx
|
---|
8 | !else
|
---|
9 | ENV_ENVS_FORCE=vac308 emx
|
---|
10 | !endif
|
---|
11 | SPACE=_
|
---|
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.os2prfalp.mk
|
---|
25 | !include $(PATH_MAKE)\setup.optional.emx.mk
|
---|
26 |
|
---|
27 |
|
---|
28 | #
|
---|
29 | # The tools
|
---|
30 | #
|
---|
31 | AR=ilib.exe
|
---|
32 | CC=gcc.exe
|
---|
33 | CXX=gcc.exe
|
---|
34 | LINK=ilink.exe
|
---|
35 | IMPLIB=implib.exe
|
---|
36 | RC=rc.exe
|
---|
37 | RL=rc.exe
|
---|
38 | EXEPACK=lxlite.exe
|
---|
39 |
|
---|
40 |
|
---|
41 | #
|
---|
42 | # The flags
|
---|
43 | #
|
---|
44 | AR_FLAGS=/nologo /noignorecase
|
---|
45 | AR_CMD=$(AR) $(AR_FLAGS) $@ @$(TARGET_LNK)
|
---|
46 | _AR_LNK1= "$(TARGET_OBJS: ="&^
|
---|
47 | ")"
|
---|
48 | AR_LNK1= $(_AR_LNK1:""=)
|
---|
49 | AR_LNK2= $(@R).lst
|
---|
50 |
|
---|
51 | CC_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)
|
---|
54 | CC_FLAGS_EXE=$(CC_FLAGS: = ) -Zmt -Zexe
|
---|
55 | CC_FLAGS_DLL=$(CC_FLAGS: = ) -Zmt -Zdll
|
---|
56 | CC_FLAGS_SYS=$(CC_FLAGS: = ) -DRING0 -mno-probe -Zdll -Zno-rte
|
---|
57 | CC_FLAGS_VDD=$(CC_FLAGS_SYS: = )
|
---|
58 | CC_FLAGS_IFS=$(CC_FLAGS_SYS: = ) -Zdll
|
---|
59 | CC_OBJ_OUT=-o$(SPACE:_= )
|
---|
60 | #CC_LST_OUT=-S -o$(SPACE:_= )
|
---|
61 | CC_PC_2_STDOUT=-C -E
|
---|
62 |
|
---|
63 |
|
---|
64 | CXX_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)
|
---|
67 | CXX_FLAGS_EXE=$(CXX_FLAGS: = ) -Zmt -Zexe
|
---|
68 | CXX_FLAGS_DLL=$(CXX_FLAGS: = ) -Zmt -Zdll
|
---|
69 | CXX_FLAGS_SYS=$(CXX_FLAGS: = ) -DRING0 -mno-probe -Zno-rte -fno-exceptions
|
---|
70 | CXX_FLAGS_VDD=$(CXX_FLAGS_SYS: = )
|
---|
71 | CXX_FLAGS_IFS=$(CXX_FLAGS_SYS: = ) -Zdll
|
---|
72 | CXX_OBJ_OUT=-o$(SPACE:_= )
|
---|
73 | #CXX_LST_OUT=-S -o$(SPACE:_= )
|
---|
74 | CXX_PC_2_STDOUT=-C -E
|
---|
75 |
|
---|
76 | IMPLIB_FLAGS=/NOI /Nologo
|
---|
77 |
|
---|
78 | LINK_FLAGS=/nofree /nologo /de /map /linenumbers /NOIgnorecase /NOE /NOD /Optfunc /PACKCODE /PACKDATA
|
---|
79 | LINK_FLAGS_EXE=$(LINK_FLAGS) /EXECutable /STACK:$(TARGET_STACKSIZE)
|
---|
80 | LINK_FLAGS_DLL=$(LINK_FLAGS) /DLL
|
---|
81 | LINK_FLAGS_SYS=$(LINK_FLAGS) /PDD /Align:16
|
---|
82 | LINK_FLAGS_VDD=$(LINK_FLAGS) /VDD /Align:16
|
---|
83 | LINK_FLAGS_IFS=$(LINK_FLAGS_DLL)
|
---|
84 | LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) crt0.obj @$(TARGET_LNK)
|
---|
85 | LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) dll0.obj @$(TARGET_LNK)
|
---|
86 | LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) crt0.obj @$(TARGET_LNK)
|
---|
87 | LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) crt0.obj @$(TARGET_LNK)
|
---|
88 | LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) dll0.obj @$(TARGET_LNK)
|
---|
89 | LINK_LNK1=$(TARGET_OBJS: =+^
|
---|
90 | ),
|
---|
91 | LINK_LNK2=$(TARGET),
|
---|
92 | LINK_LNK3=$(TARGET_MAP),
|
---|
93 | LINK_LNK4=$(TARGET_LIBS: =+^
|
---|
94 | ) end.lib,
|
---|
95 | LINK_LNK5=$(TARGET_DEF_LINK)
|
---|
96 |
|
---|
97 | RC_FLAGS=-r -n -i $(PATH_INCLUDE:;= -i ) $(RC_DEFINES) $(RC_INCLUDES)
|
---|
98 | RL_FLAGS=-x2 -n
|
---|
99 |
|
---|
100 | #
|
---|
101 | # Libraries and object files.
|
---|
102 | #
|
---|
103 | LIB_OS = os2386.lib
|
---|
104 | LIB_C_OBJ = c_alias.lib gcc.lib g.lib c.lib c_app.lib c.lib gcc.lib emx.lib os2.lib emx2.lib
|
---|
105 | LIB_C_DLL = c_alias.lib c_static.lib c_import.lib os2.lib emx2.lib
|
---|
106 | LIB_C_RTDLL = c_alias.lib c_static.lib emx2.lib
|
---|
107 | LIB_C_NRE = c_alias.lib gcc.lib g.lib c.lib c_dllnrt.lib os2.lib
|
---|
108 | LIB_C_DMNGL =
|
---|
109 | OBJ_PROFILE =
|
---|
110 |
|
---|
111 | # ---OS2, PROFILE, EMX----------------------------
|
---|
112 |
|
---|