summaryrefslogtreecommitdiff
path: root/include/makeinclude/decorator.bor
blob: 0b20bcbdeb5a9df3bbb7ebd9b75cc5e86ae60430 (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
#
# Creates a suffix for decorating output file names
#
# Inputs: 
# ~~~~~~~ 
# DEBUG - defined if building a debug library/executable
# STATIC - defined if building a static library 
# PASCAL - defined if linking against cp32*
#
# Outputs:
# ~~~~~~~~
# LIB_DECORATOR - suffix to be added to library output file name
# EXE_DECORATOR - suffix to be added to executable output file name
#    
     
DECO_PREFIX=

# If you want decoration for Borland, set this to something like "B"
# otherwise, make it blank
BORLAND_DECO=b

!ifdef BORLAND_DECO
DECO_PREFIX=_
!endif

!ifdef PASCAL
DECO_PREFIX=_
PASCAL_DECO=p
!endif
     
!ifdef STATIC
DECO_PREFIX=_
STATIC_DECO=s
!endif
     
!ifdef DEBUG
DECO_PREFIX=_
DEBUG_DECO=d
!endif
     
LIB_DECORATOR=$(DECO_PREFIX)$(BORLAND_DECO)$(PASCAL_DECO)$(STATIC_DECO)$(DEBUG_DECO)

!ifdef NO_EXE_DECORATION
EXE_DECORATOR=
!else
EXE_DECORATOR=$(DECO_PREFIX)$(BORLAND_DECO)$(PASCAL_DECO)$(STATIC_DECO)$(DEBUG_DECO)
!endif