source: trunk/include/odin32.rel.emx.mk@ 8045

Last change on this file since 8045 was 7999, checked in by bird, 24 years ago

Cleanups, mainly DEMANGLELIB -> LIB_DEMANGLE.
Also some OBJDIRs was removed.

File size: 3.4 KB
Line 
1# $Id: odin32.rel.emx.mk,v 1.7 2002-02-23 23:51:50 bird 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#
16SOMLIB = somtk.lib
17RTLLIB = \
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$(EMX)\lib\end.lib
26
27RTLLIB_O = $(EMX)\lib\mt\c_import.lib $(RTLIB)
28RTLLIB_NRE =
29DLLENTRY = $(ODIN32_LIB)\dllentry.obj
30ODINCRT = odincrtd
31LIB_DEMANGLE =
32
33
34#
35# Tools
36#
37CC = gcc
38CXX = gcc
39AS = alp
40LD = gcc
41LD2 = link386
42IMPLIB = emximp
43ILIB = emxomfar
44RC = $(ODIN32_TOOLS)\wrc
45OS2RC = rc
46
47
48#
49# Tool Flags
50#
51ASFLAGS = -Mb -Sc -Sv:ALP +Od -D:DEBUG
52IMPLIBFLAGS = -o
53ILIBFLAGS = rcv
54RCFLAGS = -s -I. -I$(CPPMAIN)\include -D__WIN32OS2__
55!ifdef WRC_PREFIX_RESOURCE
56RCFLAGS = $(RCFLAGS) -p $(TARGET)
57!endif
58OS2RCFLAGS = -r -n
59OS2RCLFLAGS = -x2 -n
60
61
62#
63# C Compiler flags.
64# This may look a bit like a mess but, there is usually a reason behind
65# every line and the way it is done. We have some problems with nmake
66# when we add new flags to for example CXXFLAGS too many times.
67#
68!ifdef EXETARGET
69CTARGETFLAGS = -Zexe
70CXXTARGETFLAGS = -Zexe
71!else
72CTARGETFLAGS = -Zdll
73CXXTARGETFLAGS = -Zdll
74!endif
75CXXEXCEPTIONS = -fhandle-exceptions
76CFLAGS = -c -Zomf -mprobe -pipe -Wall -Zmt -s -O2 -mcpu=i586 $(CTARGETFLAGS)
77CXXFLAGS = -c -Zomf -mprobe -pipe -Wall -Zmt -s -O2 -mcpu=i586 $(CXXTARGETFLAGS)
78CXXFLAGS_ODINCRT = -c -Zomf -mprobe -pipe -Wall -Zmt -s -O2 -mcpu=i586 $(CXXTARGETFLAGS)
79CFLAGS_WIN32APP = -c -Zomf -mprobe -pipe -Wall -Zmt -s -O2 -mcpu=i586 $(CTARGETFLAGS)
80CXXFLAGS_WIN32APP= -c -Zomf -mprobe -pipe -Wall -Zmt -s -O2 -mcpu=i586 $(CXXTARGETFLAGS) $(CXXEXCEPTIONS)
81CINCLUDES = -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
82CDEFINES_WIN32APP= -DDEBUG -D__WIN32OS2__ -D__i386__
83CDEFINES_ODINCRT = -DDEBUG -D__WIN32OS2__ -D__i386__ -D__WINE__
84CDEFINES = -DDEBUG -D__WIN32OS2__ -D__i386__ -D__WINE__ -DTCPV40HDRS -DCOMCTL32UNDOC \
85!ifdef DEBUGALL
86 -DDEBUG_ENABLELOG_LEVEL2 \
87!endif
88!ifdef NODEBUGINFO
89 -DDEFAULT_LOGGING_OFF
90!endif
91
92
93#
94# Linker flags.
95# This may look a bit like a mess but, there is usually a reason behind
96# every line and the way it is done. We have some problems with nmake
97# when we add new flags to for example LD2FLAGS too many times.
98#
99!ifdef EXETARGET
100
101!ifndef STACKSIZE
102STACKSIZE = 0x50000
103!endif
104
105! ifdef VIO
106LDTARGETFLAGS = -Zexe -Zstack 80
107LD2TARGETFLAGS = /pmtype:vio /stack:$(STACKSIZE)
108! else
109LDTARGETFLAGS = -Zexe -Zstack 80
110LD2TARGETFLAGS = /pmtype:pm /stack:$(STACKSIZE)
111! endif
112!else
113LDTARGETFLAGS = -Zdll
114LD2TARGETFLAGS = /DLL
115!endif
116LDFLAGS = -Zmt -Zomf -Zmap $(LDTARGETFLAGS) -s -ZLinker /EXEPACK:2 -ZLinker /NOD
117LDFLAGS_ODINCRT = -Zmt -Zomf -Zmap $(LDTARGETFLAGS) -s -ZLinker /EXEPACK:2
118LD2FLAGS = /nologo /noe /map /packcode /packdata /exepack:2 /nodebug /nod $(LD2TARGETFLAGS)
119LD2FLAGS_ODINCRT = /nologo /noe /map /packcode /packdata /exepack:2 /nodebug $(LD2TARGETFLAGS)
120
Note: See TracBrowser for help on using the repository browser.