summaryrefslogtreecommitdiff
path: root/include/makeinclude/outputdir.bor
blob: 586b38e6f272b92cea6113db42455057726affde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
#
# $Id$
#
# Creates output object and binary file directories
#
# Inputs:
# ~~~~~~~
# NAME - undecorated name of target
# DEBUG - defined if building a debug library/executable
# STATIC - defined if building a static library
# UNICODE - defined if building with unicode enabled
#
# Outputs:
# ~~~~~~~~
# BINDIR - name of directory where binaries are placed
# MAKE_BINDIR - command to be used for creating BINDIR
# OBJDIR - name of directory where object fils are placed
# MAKE_OBJDIR - command to be used for creating OBJDIR
#

!ifdef STATIC
!ifndef STATIC_DIR
STATIC_DIR=Static
!endif
OBJSTATIC_DIR=Static
!else
!ifndef STATIC_DIR
STATIC_DIR=Dynamic
!endif
OBJSTATIC_DIR=Dynamic
!endif

!ifdef DEBUG
!ifndef DEBUG_DIR
DEBUG_DIR=Debug
!endif
OBJDEBUG_DIR=Debug
!else
!ifndef DEBUG_DIR
DEBUG_DIR=Release
!endif
OBJDEBUG_DIR=Release
!endif

!ifdef PASCAL
!ifndef PASCAL_DIR
PASCAL_DIR=Pascal
!endif
OBJPASCAL_DIR=Pascal
!else
!ifndef PASCAL_DIR
PASCAL_DIR=.
!endif
OBJPASCAL_DIR=.
!endif

!ifdef UNICODE
!ifndef UNICODE_DIR
UNICODE_DIR=Unicode
!endif
OBJUNICODE_DIR=Unicode
!else
!ifndef UNICODE_DIR
UNICODE_DIR=.
!endif
OBJUNICODE_DIR=.
!endif

# By default binaries are built underneath the current build directory
!ifndef BASE_BINDIR
BASE_BINDIR=.
!endif

# By default object files are built underneath the current build directory
!ifndef BASE_OBJDIR
BASE_OBJDIR=.\obj
!endif

CONFIG_SUBDIR=$(STATIC_DIR)\$(DEBUG_DIR)\$(PASCAL_DIR)\$(UNICODE_DIR)

!ifndef BINDIR
BINDIR=$(BASE_BINDIR)\$(STATIC_DIR)\$(DEBUG_DIR)\$(PASCAL_DIR)\$(UNICODE_DIR)
!endif

!ifndef CORE_BINDIR
CORE_BINDIR=$(ACE_ROOT)\bin\$(STATIC_DIR)\$(DEBUG_DIR)\$(PASCAL_DIR)\$(UNICODE_DIR)
!endif

!ifdef MKDIR
MAKE_BINDIR=$(MKDIR) "$(BINDIR)"
!else
# Use default mkdir provided by command shell. May not work on Win9x.
MAKE_BINDIR=if not exist "$(BINDIR)" mkdir "$(BINDIR)"
!endif

!ifndef OBJDIR
OBJDIR=$(BASE_OBJDIR)\$(NAME)\$(OBJSTATIC_DIR)\$(OBJDEBUG_DIR)\$(OBJPASCAL_DIR)\$(OBJUNICODE_DIR)
!endif

!ifdef MKDIR
MAKE_OBJDIR=$(MKDIR) "$(OBJDIR)"
!else
# Use default mkdir provided by command shell. May not work on Win9x.
MAKE_OBJDIR=if not exist "$(OBJDIR)" mkdir "$(OBJDIR)"
!endif

!ifndef INSTALL_EXEDIR
!ifndef STATIC
!ifndef DEBUG
!ifndef UNICODE
INSTALL_EXEDIR=$(INSTALL_DIR)\bin
!else
INSTALL_EXEDIR=$(INSTALL_DIR)\bin\$(STATIC_DIR)\$(DEBUG_DIR)\$(UNICODE_DIR)
!endif
!else
INSTALL_EXEDIR=$(INSTALL_DIR)\bin\$(STATIC_DIR)\$(DEBUG_DIR)\$(UNICODE_DIR)
!endif
!else
INSTALL_EXEDIR=$(INSTALL_DIR)\bin\$(STATIC_DIR)\$(DEBUG_DIR)\$(UNICODE_DIR)
!endif
!endif

!ifdef MKDIR
MAKE_INSTALL_EXEDIR=$(MKDIR) "$(INSTALL_EXEDIR)"
!else
# Use default mkdir provided by command shell. May not work on Win9x.
MAKE_INSTALL_EXEDIR=if not exist "$(INSTALL_EXEDIR)" mkdir "$(INSTALL_EXEDIR)"
!endif

!ifndef INSTALL_DLLDIR
INSTALL_DLLDIR=$(INSTALL_DIR)\bin
!endif

!ifdef MKDIR
MAKE_INSTALL_DLLDIR=$(MKDIR) "$(INSTALL_DLLDIR)"
!else
# Use default mkdir provided by command shell. May not work on Win9x.
MAKE_INSTALL_DLLDIR=if not exist "$(INSTALL_DLLDIR)" mkdir "$(INSTALL_DLLDIR)"
!endif

!ifndef INSTALL_LIBDIR
INSTALL_LIBDIR=$(INSTALL_DIR)\lib
!endif

!ifdef MKDIR
MAKE_INSTALL_LIBDIR=$(MKDIR) "$(INSTALL_LIBDIR)"
!else
# Use default mkdir provided by command shell. May not work on Win9x.
MAKE_INSTALL_LIBDIR=if not exist "$(INSTALL_LIBDIR)" mkdir "$(INSTALL_LIBDIR)"
!endif

!ifndef INSTALL_INCDIR
INSTALL_INCDIR=$(INSTALL_DIR)\include\$(INCDIR_NAME)
!endif

!ifdef MKDIR
MAKE_INSTALL_INCDIR=$(MKDIR) "$(INSTALL_INCDIR)"
!else
# Use default mkdir provided by command shell. May not work on Win9x.
MAKE_INSTALL_INCDIR=if not exist "$(INSTALL_INCDIR)" mkdir "$(INSTALL_INCDIR)"
!endif