source: trunk/include/odin32.profile.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.1 KB
Line 
1# $Id: odin32.profile.emx.mk,v 1.3 2002-02-23 23:51:49 bird Exp $
2
3#
4# Odin32 API
5#
6# DEBUG 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 =
18RTLLIB_O =
19RTLLIB_NRE =
20DLLENTRY = $(ODIN32_LIB)\dllentry.obj
21ODINCRT = odincrtd
22LIB_DEMANGLE =
23
24
25#
26# Tools
27#
28CC = gcc
29CXX = gcc
30AS = alp
31LD = gcc
32LD2 = ld
33IMPLIB = emximp
34ILIB = emxomfar
35RC = $(ODIN32_TOOLS)\wrc
36OS2RC = rc
37
38
39#
40# Tool Flags
41#
42ASFLAGS = -Mb -Sc -Sv:ALP +Od -D:DEBUG
43IMPLIBFLAGS = -o
44ILIBFLAGS = rcv
45RCFLAGS = -s -I. -I$(CPPMAIN)\include
46OS2RCFLAGS = -r -n
47OS2RCLFLAGS = -x2 -n
48
49
50#
51# C Compiler flags.
52# This may look a bit like a mess but, there is usually a reason behind
53# every line and the way it is done. We have some problems with nmake
54# when we add new flags to for example CXXFLAGS too many times.
55#
56!ifdef EXETARGET
57CTARGETFLAGS = -Zexe
58CXXTARGETFLAGS = -Zexe
59!else
60CTARGETFLAGS = -Zdll
61CXXTARGETFLAGS = -Zdll
62!endif
63CXXEXCEPTIONS = -fhandle-exceptions
64CFLAGS = -c -mprobe -pg -pipe -Wall -Zmt -g $(CTARGETFLAGS)
65CXXFLAGS = -c -mprobe -pg -pipe -Wall -Zmt -g $(CXXTARGETFLAGS)
66CXXFLAGS_ODINCRT = -c -mprobe -pg -pipe -Wall -Zmt -g $(CXXTARGETFLAGS)
67CFLAGS_WIN32APP = -c -mprobe -pg -pipe -Wall -Zmt -g $(CTARGETFLAGS)
68CXXFLAGS_WIN32APP= -c -mprobe -pg -pipe -Wall -Zmt -g $(CXXTARGETFLAGS) $(CXXEXCEPTIONS)
69CINCLUDES = -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE)
70CDEFINES_WIN32APP= -DDEBUG -DPROFILE -D__WIN32OS2__ -D__i386__
71CDEFINES_ODINCRT = -DDEBUG -DPROFILE -D__WIN32OS2__ -D__i386__ -D__WINE__
72CDEFINES = -DDEBUG -DPROFILE -D__WIN32OS2__ -D__i386__ -D__WINE__ -DTCPV40HDRS -DCOMCTL32UNDOC \
73!ifdef DEBUGALL
74 -DDEBUG_ENABLELOG_LEVEL2 \
75!endif
76!ifdef NODEBUGINFO
77 -DDEFAULT_LOGGING_OFF
78!endif
79
80
81#
82# Linker flags.
83# This may look a bit like a mess but, there is usually a reason behind
84# every line and the way it is done. We have some problems with nmake
85# when we add new flags to for example LD2FLAGS too many times.
86#
87!ifdef EXETARGET
88! ifdef VIO
89LDTARGETFLAGS = -Zexe /Zstack 80
90LD2TARGETFLAGS = -Zexe /Zstack 80
91! else
92LDTARGETFLAGS = -Zexe /Zstack 80
93LD2TARGETFLAGS = -Zexe /Zstack 80
94! endif
95!else
96LDTARGETFLAGS = -Zdll
97LD2TARGETFLAGS = -Zdll
98!endif
99!ifdef NODEBUGINFO
100LDFLAGS = -Zmt -Zomf -Zmap $(LDTARGETFLAGS) -s -ZLinker /EXEPACK:2 -ZLinker /NOD
101LDFLAGS_ODINCRT = -Zmt -Zomf -Zmap $(LDTARGETFLAGS) -s -ZLinker /EXEPACK:2
102LD2FLAGS = -Zmt -Zomf -Zmap $(LD2TARGETFLAGS) -s -O/EXEPACK:2 -O/NOD
103LD2FLAGS_ODINCRT = -Zmt -Zomf -Zmap $(LD2TARGETFLAGS) -s -O/EXEPACK:2
104!else
105LDFLAGS = -Zmt -Zomf -Zmap $(LDTARGETFLAGS) -ZLinker /NOD
106LDFLAGS_ODINCRT = -Zmt -Zomf -Zmap $(LDTARGETFLAGS)
107LD2FLAGS = -Zmt -Zomf -Zmap $(LD2TARGETFLAGS) -O/NOD
108LD2FLAGS_ODINCRT = -Zmt -Zomf -Zmap $(LD2TARGETFLAGS)
109!endif
110
Note: See TracBrowser for help on using the repository browser.