1 | # $Id: odin32.rel.emx.mk,v 1.10 2003-02-28 10:28:11 sandervl Exp $
|
---|
2 |
|
---|
3 | #
|
---|
4 | # Odin32 API
|
---|
5 | #
|
---|
6 | # RELEASE makefile for the GNU EMX compiler environment.
|
---|
7 | #
|
---|
8 | # ---------------------------------------------------------------------------------
|
---|
9 | # NOTE: this configuration is not supported neither working, it's experimental only.
|
---|
10 | # ---------------------------------------------------------------------------------
|
---|
11 |
|
---|
12 |
|
---|
13 | #
|
---|
14 | # Library macros.
|
---|
15 | #
|
---|
16 | SOMLIB = somtk.lib
|
---|
17 | RTLLIB = \
|
---|
18 | #$(EMX)\lib\mt\c.lib \
|
---|
19 | #$(EMX)\lib\mt\c_app.lib \
|
---|
20 | #$(EMX)\lib\c_alias.lib \
|
---|
21 | #$(EMX)\lib\mt\emx.lib \
|
---|
22 | #$(EMX)\lib\emx2.lib \
|
---|
23 | #$(EMX)\lib\stdcpp.lib \
|
---|
24 | #$(EMX)\lib\gcc.lib \
|
---|
25 | $(ODIN32_BASE)\src\msvcrt\libs\m.lib \
|
---|
26 | $(EMX)\lib\iberty_s.lib \
|
---|
27 | $(EMX)\lib\gcc-lib\i386-pc-os2_emx\3.0.3\mt\gcc.lib \
|
---|
28 | $(EMX)\lib\mt\c.lib \
|
---|
29 | $(EMX)\lib\mt\c_dllso.lib \
|
---|
30 | $(EMX)\lib\mt\sys.lib \
|
---|
31 | $(EMX)\lib\c_alias.lib \
|
---|
32 | $(EMX)\lib\mt\emx.lib \
|
---|
33 | $(EMX)\lib\emx2.lib \
|
---|
34 | $(EMX)\lib\gcc-lib\i386-pc-os2_emx\3.0.3\mt\stdcxx.lib \
|
---|
35 | $(EMX)\lib\gcc-lib\i386-pc-os2_emx\3.0.3\mt\gpp.lib \
|
---|
36 | #$(EMX)\lib\stdcpp.lib \
|
---|
37 | #$(EMX)\lib\mt\c_app.lib makes trouble for crtdll \
|
---|
38 |
|
---|
39 | RTLLIB_O = $(EMX)\lib\mt\c_import.lib $(RTLLIB)
|
---|
40 | RTLLIB_NRE =
|
---|
41 | DLLENTRY = $(ODIN32_LIB)\dllentry.obj
|
---|
42 | ODINCRT = odincrtd
|
---|
43 | LIB_DEMANGLE =
|
---|
44 |
|
---|
45 |
|
---|
46 | #
|
---|
47 | # Tools
|
---|
48 | #
|
---|
49 | CC = gcc
|
---|
50 | CXX = gcc
|
---|
51 | AS = alp
|
---|
52 | AS_EMX = as
|
---|
53 | LD = gcc
|
---|
54 | LD2 = link386
|
---|
55 | IMPLIB = implib
|
---|
56 | ILIB = emxomfar
|
---|
57 | RC = $(ODIN32_TOOLS)\wrc
|
---|
58 | OS2RC = rc
|
---|
59 |
|
---|
60 |
|
---|
61 | #
|
---|
62 | # Tool Flags
|
---|
63 | #
|
---|
64 | ASFLAGS = -Mb -Sc -Sv:ALP +Od
|
---|
65 | IMPLIBFLAGS = /nologo
|
---|
66 | ILIBFLAGS = rcv
|
---|
67 | RCFLAGS = -s -I. -I$(CPPMAIN)\include -D__WIN32OS2__
|
---|
68 | !ifdef WRC_PREFIX_RESOURCE
|
---|
69 | RCFLAGS = $(RCFLAGS) -p $(TARGET)
|
---|
70 | !endif
|
---|
71 | OS2RCFLAGS = -r -n
|
---|
72 | OS2RCLFLAGS = -x2 -n
|
---|
73 |
|
---|
74 |
|
---|
75 | #
|
---|
76 | # C Compiler flags.
|
---|
77 | # This may look a bit like a mess but, there is usually a reason behind
|
---|
78 | # every line and the way it is done. We have some problems with nmake
|
---|
79 | # when we add new flags to for example CXXFLAGS too many times.
|
---|
80 | #
|
---|
81 | !ifdef EXETARGET
|
---|
82 | CTARGETFLAGS = -Zexe
|
---|
83 | CXXTARGETFLAGS = -Zexe
|
---|
84 | !else
|
---|
85 | CTARGETFLAGS = -Zdll
|
---|
86 | CXXTARGETFLAGS = -Zdll
|
---|
87 | !endif
|
---|
88 | CXXEXCEPTIONS = -fhandle-exceptions
|
---|
89 | CFLAGS = -Zomf -pipe -Wall -Zmt -g -O6 -mcpu=pentium $(CTARGETFLAGS)
|
---|
90 | CXXFLAGS = -Zomf -pipe -Wall -Zmt -g -O6 -mcpu=pentium $(CXXTARGETFLAGS)
|
---|
91 | CXXFLAGS_ODINCRT = -Zomf -pipe -Wall -Zmt -g -O6 -mcpu=pentium $(CXXTARGETFLAGS)
|
---|
92 | CFLAGS_WIN32APP = -Zomf -pipe -Wall -Zmt -g -O6 -mcpu=pentium $(CTARGETFLAGS)
|
---|
93 | CXXFLAGS_WIN32APP= -Zomf -pipe -Wall -Zmt -g -O6 -mcpu=pentium $(CXXTARGETFLAGS) $(CXXEXCEPTIONS)
|
---|
94 | CINCLUDES = -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
|
---|
95 | CDEFINES = -D__WIN32OS2__ -D__WINE__ -D__i386__ -DTCPV40HDRS -DCOMCTL32UNDOC
|
---|
96 | CDEFINES_ODINCRT = -D__WIN32OS2__ -D__WINE__ -D__i386__
|
---|
97 | CDEFINES_WIN32APP= -D__WIN32OS2__ -D__i386__
|
---|
98 |
|
---|
99 |
|
---|
100 | #
|
---|
101 | # Linker flags.
|
---|
102 | # This may look a bit like a mess but, there is usually a reason behind
|
---|
103 | # every line and the way it is done. We have some problems with nmake
|
---|
104 | # when we add new flags to for example LD2FLAGS too many times.
|
---|
105 | #
|
---|
106 | !ifdef EXETARGET
|
---|
107 | !ifndef STACKSIZE
|
---|
108 | STACKSIZE = 0x50000
|
---|
109 | !endif
|
---|
110 | ! ifdef VIO
|
---|
111 | LDTARGETFLAGS = -Zexe -Zstack 80
|
---|
112 | LD2TARGETFLAGS = /pmtype:vio /stack:$(STACKSIZE)
|
---|
113 | ! else
|
---|
114 | LDTARGETFLAGS = -Zexe -Zstack 80
|
---|
115 | LD2TARGETFLAGS = /pmtype:pm /stack:$(STACKSIZE)
|
---|
116 | ! endif
|
---|
117 | !else
|
---|
118 | LDTARGETFLAGS = -Zdll -Zso -Zsys
|
---|
119 | LD2TARGETFLAGS = /DLL
|
---|
120 | !endif
|
---|
121 | LDFLAGS = -Zmt -Zomf -Zmap -Zlinker "/MAP:FULL /Linenumbers /packcode /packdata /exepack:2 /Nod" $(LDTARGETFLAGS) -s
|
---|
122 | LDFLAGS_ODINCRT = -Zmt -Zomf -Zmap -Zlinker "/MAP:FULL /Linenumbers /packcode /packdata /exepack:2 " $(LDTARGETFLAGS) -s
|
---|
123 | LD2FLAGS = /nologo /noe /map:full /NoIgnoreCase /Linenumbers /packcode /packdata /exepack:2 /nodebug /nod $(LD2TARGETFLAGS)
|
---|
124 | LD2FLAGS_ODINCRT = /nologo /noe /map:full /NoIgnoreCase /Linenumbers /packcode /packdata /exepack:2 /nodebug $(LD2TARGETFLAGS)
|
---|
125 |
|
---|