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