aboutsummaryrefslogtreecommitdiff
path: root/build/configuration.make
blob: e2d0077d936a9733dfb07b383f288f94d99e7025 (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
# file      : build/configuration.make
# author    : Boris Kolpackov <boris@codesynthesis.com>
# copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
# license   : GNU GPL v2; see accompanying LICENSE file

$(call include-once,$(scf_root)/configuration-rules.make,$(dcf_root))

# Dynamic configuration.
#
db_id :=

$(call -include,$(dcf_root)/configuration-dynamic.make)

ifdef db_id

ifeq ($(db_id),mysql)
db_macro := DATABASE_MYSQL
endif

ifeq ($(db_id),sqlite)
db_macro := DATABASE_SQLITE
endif

ifeq ($(db_id),pgsql)
db_macro := DATABASE_PGSQL
endif

ifeq ($(db_id),oracle)
db_macro := DATABASE_ORACLE
endif

$(out_root)/%: db_id    := $(db_id)
$(out_root)/%: db_macro := $(db_macro)

else

.NOTPARALLEL:

endif