1 | # $Id: setup.optional.emx.mk,v 1.3 2002-09-14 23:31:27 bird Exp $
|
---|
2 |
|
---|
3 | #
|
---|
4 | # Helper file for all the optional stuff which is common for
|
---|
5 | # all emx/gcc compilers.
|
---|
6 | # Concidering the size of this, it really make sense putting it here.
|
---|
7 | #
|
---|
8 |
|
---|
9 | MAKE_INCLUDE_CX_OPT = $(PATH_MAKE)\setup.optional.emx.mk
|
---|
10 |
|
---|
11 | #
|
---|
12 | # C Compiler flags.
|
---|
13 | #
|
---|
14 | _CC_SEG_TEXT =
|
---|
15 | _CC_SEG_DATA =
|
---|
16 | _CC_SEG_XCPT =
|
---|
17 | _CC_DEFAULT_LIBS = -nodefaultlibs
|
---|
18 | _CC_PACK =
|
---|
19 | _CC_MODEL =
|
---|
20 |
|
---|
21 | !if defined(ALL_SEG_TEXT) || defined(CC_SEG_TEXT) || defined(ALL_SEG_DATA) || defined(CC_SEG_DATA)
|
---|
22 | ! error ALL_SEG_*/CC_SEG_* is not supported by this compiler, ($(ENV_NAME)).
|
---|
23 | !endif
|
---|
24 | !if defined(CC_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
|
---|
25 | _CC_DEFAULT_LIBS = -defaultlibs
|
---|
26 | !endif
|
---|
27 | !ifdef ALL_PACK
|
---|
28 | CC_PACK = ALL_PACK
|
---|
29 | !endif
|
---|
30 | !ifdef CC_PACK
|
---|
31 | ! if "$(CC_PACK)" == 1
|
---|
32 | _CC_PACK = -fpack-struct
|
---|
33 | ! else
|
---|
34 | ! error ALL_PACK/CC_PACK different from 1 is not supported by this compiler, ($(ENV_NAME)).
|
---|
35 | ! endif
|
---|
36 | !endif
|
---|
37 | !if defined(CC_MODEL) || defined(ALL_MODEL)
|
---|
38 | ! if [$(ECHO) warning: CC_MODEL/ALL_MODEL isn't supported by this compiler$(CLRRST)]
|
---|
39 | ! endif
|
---|
40 | !endif
|
---|
41 |
|
---|
42 | _CC_OPTIONAL = $(_CC_SEG_TEXT) $(_CC_SEG_DATA) $(_CC_SEG_XCPT) $(_CC_DEFAULT_LIBS) $(_CC_PACK) $(_CC_MODEL)
|
---|
43 |
|
---|
44 |
|
---|
45 |
|
---|
46 | #
|
---|
47 | # C++ Compiler flags.
|
---|
48 | #
|
---|
49 | _CXX_SEG_TEXT =
|
---|
50 | _CXX_SEG_DATA =
|
---|
51 | _CXX_SEG_XCPT =
|
---|
52 | _CXX_DEFAULT_LIBS = -nodefaultlibs
|
---|
53 | _CXX_PACK =
|
---|
54 | _CXX_XCPT = -fno-exceptions
|
---|
55 | _CXX_MODEL =
|
---|
56 |
|
---|
57 | !if defined(ALL_SEG_TEXT) || defined(CC_SEG_TEXT) || defined(ALL_SEG_DATA) || defined(CC_SEG_DATA) || defined(ALL_SEG_XCPT) || defined(CXX_SEG_XCPT)
|
---|
58 | ! error ALL_SEG_*/CXX_SEG_* is not supported by this compiler, ($(ENV_NAME)).
|
---|
59 | !endif
|
---|
60 | !if defined(CC_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
|
---|
61 | _CXX_DEFAULT_LIBS = -defaultlibs
|
---|
62 | !endif
|
---|
63 | !ifdef ALL_PACK
|
---|
64 | CXX_PACK = ALL_PACK
|
---|
65 | !endif
|
---|
66 | !ifdef CXX_PACK
|
---|
67 | ! if "$(CXX_PACK)" == 1
|
---|
68 | _CXX_PACK = -fpack-struct
|
---|
69 | ! else
|
---|
70 | ! error ALL_PACK/CC_PACK different from 1 is not supported by this compiler, ($(ENV_NAME)).
|
---|
71 | ! endif
|
---|
72 | !endif
|
---|
73 | !ifdef CXX_XCPT
|
---|
74 | _CXX_XCPT = -fexceptions
|
---|
75 | !endif
|
---|
76 | !ifdef CXX_NO_XCPT
|
---|
77 | _CXX_XCPT = -fno-exceptions
|
---|
78 | !endif
|
---|
79 | !if defined(CXX_MODEL) || defined(ALL_MODEL)
|
---|
80 | ! if [$(ECHO) warning: CXX_MODEL/ALL_MODEL isn't supported by this compiler$(CLRRST)]
|
---|
81 | ! endif
|
---|
82 | !endif
|
---|
83 |
|
---|
84 | _CXX_OPTIONAL = $(_CXX_SEG_TEXT) $(_CXX_SEG_DATA) $(_CXX_SEG_XCPT) $(_CXX_DEFAULT_LIBS) $(_CXX_PACK) $(_CXX_XCPT) $(_CXX_MODEL)
|
---|
85 |
|
---|
86 |
|
---|