summaryrefslogtreecommitdiff
path: root/include/makeinclude/outputdir.bor
blob: a718e1a4c5a9c9977b228fde90e3511c937ca453 (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
#
# 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
#
# 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
STATIC_DIR=Static
!else
STATIC_DIR=Dynamic
!endif 

!ifdef DEBUG
DEBUG_DIR=Debug
!else
DEBUG_DIR=Release
!endif
     
!ifndef BASE_BINDIR
BASE_BINDIR=$(ACE_ROOT)\bin
!endif

!ifndef BASE_OBJDIR
BASE_OBJDIR=$(ACE_ROOT)\obj
!endif

!ifndef BINDIR
BINDIR=$(BASE_BINDIR)\$(DEBUG_DIR)
!endif

MAKE_BINDIR=if not exist "$(BINDIR)" mkdir "$(BINDIR)"

OBJDIR=$(BASE_OBJDIR)\$(NAME)\$(STATIC_DIR)\$(DEBUG_DIR)

MAKE_OBJDIR=if not exist "$(OBJDIR)" mkdir "$(OBJDIR)"