source: trunk/include/odin32.mk@ 6502

Last change on this file since 6502 was 6448, checked in by bird, 24 years ago

Added nothing common rule.

File size: 3.1 KB
RevLine 
[6448]1# $Id: odin32.mk,v 1.5 2001-08-04 14:16:17 bird Exp $
[4718]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
[4770]14# PROFILE - build a profile debug version instead of release version
[4718]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
[6105]36! if "$(CCENV)" == "EMX"
37CCENV = EMX
38DIREXT = .emx
39EMXENV = 1 # Can't use EMX. (SET EMX will show you why)
40! else
[4718]41# default compiler
42CCENV = VAC3
43DIREXT =
44VAC3 = 1
[6105]45! endif
[4718]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
[4770]64! ifdef DEBUG
[4718]65ODIN32_BIN = $(ODIN32_BIN_)\Debug$(DIREXT)
66ODIN32_BIN__= $(ODIN32_BIN_)\Debug$(DIREXT)
[4770]67! else
68! ifdef PROFILE
69ODIN32_BIN = $(ODIN32_BIN_)\Debug$(DIREXT)
70ODIN32_BIN__= $(ODIN32_BIN_)\Debug$(DIREXT)
71! else
[4718]72ODIN32_BIN = $(ODIN32_BIN_)\Release$(DIREXT)
73ODIN32_BIN__= $(ODIN32_BIN_)\Release$(DIREXT)
[4770]74! endif
75! endif
[4718]76!endif
[4770]77
[4718]78!ifndef ODIN32_LIB
[4770]79! ifdef DEBUG
[4718]80ODIN32_LIB = $(ODIN32_LIB_)\Debug$(DIREXT)
81ODIN32_LIB__= $(ODIN32_LIB_)\Debug$(DIREXT)
[4770]82! else
83! ifdef PROFILE
84ODIN32_LIB = $(ODIN32_LIB_)\Debug$(DIREXT)
85ODIN32_LIB__= $(ODIN32_LIB_)\Debug$(DIREXT)
86! else
[4718]87ODIN32_LIB = $(ODIN32_LIB_)\Release$(DIREXT)
88ODIN32_LIB__= $(ODIN32_LIB_)\Release$(DIREXT)
[4770]89! endif
90! endif
[4718]91!endif
[4770]92
[4718]93!ifndef OBJDIR
[4770]94! ifdef DEBUG
[4718]95OBJDIR = .\bin\Debug$(DIREXT)
[4770]96! else
97! ifdef PROFILE
98OBJDIR = .\bin\Debug$(DIREXT)
99! else
[4718]100OBJDIR = .\bin\Release$(DIREXT)
[4770]101! endif
102! endif
[4718]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!)
[6448]114# (Please don't change order of these rules!)
[4718]115#
[6448]116COMMONRULES = clean dep lib all nothing
[4718]117
118
119#
[6422]120# Altern configuration if we're making the custom build object library.
121#
122!if "$(CUSTOMBUILD)" == "1"
123! ifndef LIBTARGET
124! ifndef PUBLICLIB
125LIBTARGET = 1
126EXETARGET = 1
127PUBLICLIB = 1
128WRC_PREFIX_RESOURCE=1
129! else
130CUSTOMBUILD = 0
131! endif
132! else
133CUSTOMBUILD = 0
134! endif
135!endif
136
137
138#
[4718]139# Include compiler environment.
140#
141!ifndef ONLY_TOOLS
142!ifdef DEBUG
[4770]143! include $(ODIN32_INCLUDE)/odin32.dbg.$(CCENV).mk
[4718]144!else
[4770]145! ifdef PROFILE
146! include $(ODIN32_INCLUDE)/odin32.profile.$(CCENV).mk
147! else
148! include $(ODIN32_INCLUDE)/odin32.rel.$(CCENV).mk
149! endif
[4718]150!endif
151!endif
152
153
154#
155# Include system tools
156#
157!include $(ODIN32_INCLUDE)/odin32.tools.mk
158
Note: See TracBrowser for help on using the repository browser.