summaryrefslogtreecommitdiff
path: root/include/makeinclude/make_flags.bor
blob: 1850247563bd8d2b8d9f9046a236c7a82441fab1 (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
#
# Makefile flags for recursive invocations of make
#

!ifdef DEBUG
DEBUG_FLAG = -DDEBUG 
!endif

!ifdef STATIC
STATIC_FLAG = -DSTATIC
!endif

!ifdef PASCAL
PASCAL_FLAG = -DPASCAL
!if $(BCBVER) != 4
!ifndef FORCE_PASCAL
!message
!message -------------------------------------------------------------
!message The PASCAL build configuration is *not* required for use with
!message Borland C++Builder 5.
!message
!message Since both VCL and non-VCL applications share a common run-
!message time library (i.e. cc3250mt.dll), you can simply link your
!message VCL code with a non-PASCAL build of the ACE+TAO libraries.
!message
!message If you still really want to build a PASCAL configuration, add
!message -DFORCE_PASCAL to your make command.
!message -------------------------------------------------------------
!message
!error Aborting build
!else
PASCAL_FLAG = -DPASCAL -DFORCE_PASCAL
!endif
!endif
!endif

!ifdef CODEGUARD
CODEGUARD_FLAG = -DCODEGUARD
!endif

!ifdef INSTALL_DIR
INSTALL_DIR_FLAG = -DINSTALL_DIR=$(INSTALL_DIR)
!endif

MAKE_FLAGS = $(DEBUG_FLAG) $(STATIC_FLAG) $(PASCAL_FLAG) \
       $(CODEGUARD_FLAG) $(INSTALL_DIR_FLAG)