source: trunk/include/odin32.mk@ 5280

Last change on this file since 5280 was 4770, checked in by phaller, 25 years ago

Added profiling support

File size: 2.6 KB
RevLine 
[4770]1# $Id: odin32.mk,v 1.2 2000-12-09 16:04:21 phaller 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
36# default compiler
37CCENV = VAC3
38DIREXT =
39VAC3 = 1
40! endif
41! endif
42!else
43# (wmake and Watcom)
44CCENV = WAT
45DIREXT = .wat
46WAT = 1
47! if "$(%DEBUG)" != ""
48DEBUG = 1
49! endif
50!endif
51
52
53#
54# Target directories.
55# Both bin and lib directories are compiler dependent.
56#
57!ifndef ODIN32_BIN
[4770]58! ifdef DEBUG
[4718]59ODIN32_BIN = $(ODIN32_BIN_)\Debug$(DIREXT)
60ODIN32_BIN__= $(ODIN32_BIN_)\Debug$(DIREXT)
[4770]61! else
62! ifdef PROFILE
63ODIN32_BIN = $(ODIN32_BIN_)\Debug$(DIREXT)
64ODIN32_BIN__= $(ODIN32_BIN_)\Debug$(DIREXT)
65! else
[4718]66ODIN32_BIN = $(ODIN32_BIN_)\Release$(DIREXT)
67ODIN32_BIN__= $(ODIN32_BIN_)\Release$(DIREXT)
[4770]68! endif
69! endif
[4718]70!endif
[4770]71
[4718]72!ifndef ODIN32_LIB
[4770]73! ifdef DEBUG
[4718]74ODIN32_LIB = $(ODIN32_LIB_)\Debug$(DIREXT)
75ODIN32_LIB__= $(ODIN32_LIB_)\Debug$(DIREXT)
[4770]76! else
77! ifdef PROFILE
78ODIN32_LIB = $(ODIN32_LIB_)\Debug$(DIREXT)
79ODIN32_LIB__= $(ODIN32_LIB_)\Debug$(DIREXT)
80! else
[4718]81ODIN32_LIB = $(ODIN32_LIB_)\Release$(DIREXT)
82ODIN32_LIB__= $(ODIN32_LIB_)\Release$(DIREXT)
[4770]83! endif
84! endif
[4718]85!endif
[4770]86
[4718]87!ifndef OBJDIR
[4770]88! ifdef DEBUG
[4718]89OBJDIR = .\bin\Debug$(DIREXT)
[4770]90! else
91! ifdef PROFILE
92OBJDIR = .\bin\Debug$(DIREXT)
93! else
[4718]94OBJDIR = .\bin\Release$(DIREXT)
[4770]95! endif
96! endif
[4718]97!endif
98
99
100#
101# Post include macro.
102#
103ODIN32_POST_INC = $(ODIN32_INCLUDE)/odin32.post.mk
104
105
106#
107# Common rules macro. (All makefiles should have these!)
108#
109COMMONRULES = clean dep lib all
110
111
112#
113# Include compiler environment.
114#
115!ifndef ONLY_TOOLS
116!ifdef DEBUG
[4770]117! include $(ODIN32_INCLUDE)/odin32.dbg.$(CCENV).mk
[4718]118!else
[4770]119! ifdef PROFILE
120! include $(ODIN32_INCLUDE)/odin32.profile.$(CCENV).mk
121! else
122! include $(ODIN32_INCLUDE)/odin32.rel.$(CCENV).mk
123! endif
[4718]124!endif
125!endif
126
127
128#
129# Include system tools
130#
131!include $(ODIN32_INCLUDE)/odin32.tools.mk
132
Note: See TracBrowser for help on using the repository browser.