source: trunk/include/odin32.mk@ 6170

Last change on this file since 6170 was 6105, checked in by bird, 24 years ago

Made EMX work. CCENV test was missing..

File size: 2.7 KB
Line 
1# $Id: odin32.mk,v 1.3 2001-06-25 23:17:53 bird Exp $
2
3#
4# Odin32 API
5#
6# Create: cdmckill@novice.uwaterloo.ca, January 4th, 1998
7# Modified: phaller@gmx.net, May 27th, 1999
8# knut.stange.osmundsen@mynd.no, 2nd Dec. 2000
9#
10
11#
12# defines
13# DEBUG - build a debug version instead of release version
14# PROFILE - build a profile debug version instead of release version
15# CCENV:
16# VAC3 - use IBM VisualAge for C++ 3 compiler environment (default).
17# VAC36 - use IBM VisualAge for C++ 3.6.5 compiler environment.
18# WAT - use Watcom C/C++ v11.x compiler environment.
19# EMX - use GNU/EMX compiler environment. (don't work!)
20#
21
22#
23# Determin compiler environment
24#
25!ifndef __VERSION__
26! ifndef CCENV
27CCENV = VAC3
28DIREXT =
29VAC3 = 1
30! else
31! if "$(CCENV)" == "VAC36"
32CCENV = VAC36
33DIREXT = .vac36
34VAC36 = 1
35! else
36! if "$(CCENV)" == "EMX"
37CCENV = EMX
38DIREXT = .emx
39EMXENV = 1 # Can't use EMX. (SET EMX will show you why)
40! else
41# default compiler
42CCENV = VAC3
43DIREXT =
44VAC3 = 1
45! endif
46! endif
47! endif
48!else
49# (wmake and Watcom)
50CCENV = WAT
51DIREXT = .wat
52WAT = 1
53! if "$(%DEBUG)" != ""
54DEBUG = 1
55! endif
56!endif
57
58
59#
60# Target directories.
61# Both bin and lib directories are compiler dependent.
62#
63!ifndef ODIN32_BIN
64! ifdef DEBUG
65ODIN32_BIN = $(ODIN32_BIN_)\Debug$(DIREXT)
66ODIN32_BIN__= $(ODIN32_BIN_)\Debug$(DIREXT)
67! else
68! ifdef PROFILE
69ODIN32_BIN = $(ODIN32_BIN_)\Debug$(DIREXT)
70ODIN32_BIN__= $(ODIN32_BIN_)\Debug$(DIREXT)
71! else
72ODIN32_BIN = $(ODIN32_BIN_)\Release$(DIREXT)
73ODIN32_BIN__= $(ODIN32_BIN_)\Release$(DIREXT)
74! endif
75! endif
76!endif
77
78!ifndef ODIN32_LIB
79! ifdef DEBUG
80ODIN32_LIB = $(ODIN32_LIB_)\Debug$(DIREXT)
81ODIN32_LIB__= $(ODIN32_LIB_)\Debug$(DIREXT)
82! else
83! ifdef PROFILE
84ODIN32_LIB = $(ODIN32_LIB_)\Debug$(DIREXT)
85ODIN32_LIB__= $(ODIN32_LIB_)\Debug$(DIREXT)
86! else
87ODIN32_LIB = $(ODIN32_LIB_)\Release$(DIREXT)
88ODIN32_LIB__= $(ODIN32_LIB_)\Release$(DIREXT)
89! endif
90! endif
91!endif
92
93!ifndef OBJDIR
94! ifdef DEBUG
95OBJDIR = .\bin\Debug$(DIREXT)
96! else
97! ifdef PROFILE
98OBJDIR = .\bin\Debug$(DIREXT)
99! else
100OBJDIR = .\bin\Release$(DIREXT)
101! endif
102! endif
103!endif
104
105
106#
107# Post include macro.
108#
109ODIN32_POST_INC = $(ODIN32_INCLUDE)/odin32.post.mk
110
111
112#
113# Common rules macro. (All makefiles should have these!)
114#
115COMMONRULES = clean dep lib all
116
117
118#
119# Include compiler environment.
120#
121!ifndef ONLY_TOOLS
122!ifdef DEBUG
123! include $(ODIN32_INCLUDE)/odin32.dbg.$(CCENV).mk
124!else
125! ifdef PROFILE
126! include $(ODIN32_INCLUDE)/odin32.profile.$(CCENV).mk
127! else
128! include $(ODIN32_INCLUDE)/odin32.rel.$(CCENV).mk
129! endif
130!endif
131!endif
132
133
134#
135# Include system tools
136#
137!include $(ODIN32_INCLUDE)/odin32.tools.mk
138
Note: See TracBrowser for help on using the repository browser.