1 | # $Id: odin32.mk,v 1.5 2001-08-04 14:16:17 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
|
---|
27 | CCENV = VAC3
|
---|
28 | DIREXT =
|
---|
29 | VAC3 = 1
|
---|
30 | ! else
|
---|
31 | ! if "$(CCENV)" == "VAC36"
|
---|
32 | CCENV = VAC36
|
---|
33 | DIREXT = .vac36
|
---|
34 | VAC36 = 1
|
---|
35 | ! else
|
---|
36 | ! if "$(CCENV)" == "EMX"
|
---|
37 | CCENV = EMX
|
---|
38 | DIREXT = .emx
|
---|
39 | EMXENV = 1 # Can't use EMX. (SET EMX will show you why)
|
---|
40 | ! else
|
---|
41 | # default compiler
|
---|
42 | CCENV = VAC3
|
---|
43 | DIREXT =
|
---|
44 | VAC3 = 1
|
---|
45 | ! endif
|
---|
46 | ! endif
|
---|
47 | ! endif
|
---|
48 | !else
|
---|
49 | # (wmake and Watcom)
|
---|
50 | CCENV = WAT
|
---|
51 | DIREXT = .wat
|
---|
52 | WAT = 1
|
---|
53 | ! if "$(%DEBUG)" != ""
|
---|
54 | DEBUG = 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
|
---|
65 | ODIN32_BIN = $(ODIN32_BIN_)\Debug$(DIREXT)
|
---|
66 | ODIN32_BIN__= $(ODIN32_BIN_)\Debug$(DIREXT)
|
---|
67 | ! else
|
---|
68 | ! ifdef PROFILE
|
---|
69 | ODIN32_BIN = $(ODIN32_BIN_)\Debug$(DIREXT)
|
---|
70 | ODIN32_BIN__= $(ODIN32_BIN_)\Debug$(DIREXT)
|
---|
71 | ! else
|
---|
72 | ODIN32_BIN = $(ODIN32_BIN_)\Release$(DIREXT)
|
---|
73 | ODIN32_BIN__= $(ODIN32_BIN_)\Release$(DIREXT)
|
---|
74 | ! endif
|
---|
75 | ! endif
|
---|
76 | !endif
|
---|
77 |
|
---|
78 | !ifndef ODIN32_LIB
|
---|
79 | ! ifdef DEBUG
|
---|
80 | ODIN32_LIB = $(ODIN32_LIB_)\Debug$(DIREXT)
|
---|
81 | ODIN32_LIB__= $(ODIN32_LIB_)\Debug$(DIREXT)
|
---|
82 | ! else
|
---|
83 | ! ifdef PROFILE
|
---|
84 | ODIN32_LIB = $(ODIN32_LIB_)\Debug$(DIREXT)
|
---|
85 | ODIN32_LIB__= $(ODIN32_LIB_)\Debug$(DIREXT)
|
---|
86 | ! else
|
---|
87 | ODIN32_LIB = $(ODIN32_LIB_)\Release$(DIREXT)
|
---|
88 | ODIN32_LIB__= $(ODIN32_LIB_)\Release$(DIREXT)
|
---|
89 | ! endif
|
---|
90 | ! endif
|
---|
91 | !endif
|
---|
92 |
|
---|
93 | !ifndef OBJDIR
|
---|
94 | ! ifdef DEBUG
|
---|
95 | OBJDIR = .\bin\Debug$(DIREXT)
|
---|
96 | ! else
|
---|
97 | ! ifdef PROFILE
|
---|
98 | OBJDIR = .\bin\Debug$(DIREXT)
|
---|
99 | ! else
|
---|
100 | OBJDIR = .\bin\Release$(DIREXT)
|
---|
101 | ! endif
|
---|
102 | ! endif
|
---|
103 | !endif
|
---|
104 |
|
---|
105 |
|
---|
106 | #
|
---|
107 | # Post include macro.
|
---|
108 | #
|
---|
109 | ODIN32_POST_INC = $(ODIN32_INCLUDE)/odin32.post.mk
|
---|
110 |
|
---|
111 |
|
---|
112 | #
|
---|
113 | # Common rules macro. (All makefiles should have these!)
|
---|
114 | # (Please don't change order of these rules!)
|
---|
115 | #
|
---|
116 | COMMONRULES = clean dep lib all nothing
|
---|
117 |
|
---|
118 |
|
---|
119 | #
|
---|
120 | # Altern configuration if we're making the custom build object library.
|
---|
121 | #
|
---|
122 | !if "$(CUSTOMBUILD)" == "1"
|
---|
123 | ! ifndef LIBTARGET
|
---|
124 | ! ifndef PUBLICLIB
|
---|
125 | LIBTARGET = 1
|
---|
126 | EXETARGET = 1
|
---|
127 | PUBLICLIB = 1
|
---|
128 | WRC_PREFIX_RESOURCE=1
|
---|
129 | ! else
|
---|
130 | CUSTOMBUILD = 0
|
---|
131 | ! endif
|
---|
132 | ! else
|
---|
133 | CUSTOMBUILD = 0
|
---|
134 | ! endif
|
---|
135 | !endif
|
---|
136 |
|
---|
137 |
|
---|
138 | #
|
---|
139 | # Include compiler environment.
|
---|
140 | #
|
---|
141 | !ifndef ONLY_TOOLS
|
---|
142 | !ifdef DEBUG
|
---|
143 | ! include $(ODIN32_INCLUDE)/odin32.dbg.$(CCENV).mk
|
---|
144 | !else
|
---|
145 | ! ifdef PROFILE
|
---|
146 | ! include $(ODIN32_INCLUDE)/odin32.profile.$(CCENV).mk
|
---|
147 | ! else
|
---|
148 | ! include $(ODIN32_INCLUDE)/odin32.rel.$(CCENV).mk
|
---|
149 | ! endif
|
---|
150 | !endif
|
---|
151 | !endif
|
---|
152 |
|
---|
153 |
|
---|
154 | #
|
---|
155 | # Include system tools
|
---|
156 | #
|
---|
157 | !include $(ODIN32_INCLUDE)/odin32.tools.mk
|
---|
158 |
|
---|