blob: bc3a5ab58c87a01806be97d9a679c985bc90e021 (
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
|
##############################################
# flext defines
##############################################
ifdef SHARED
# --- shared ---
DEFS+=-DFLEXT_SHARED
else
ifdef THREADED
# --- static multi-threaded ---
DEFS+=-DFLEXT_THREADS
else
# --- static single-threaded ---
endif
endif
ifdef FLEXTBUILD
DEFS+=-DFLEXT_EXPORTS
endif
##############################################
# name of flext library
##############################################
ifdef SHARED
ifdef DEBUG
FLEXTNAME=flext-$(RTSYS)_d
else
FLEXTNAME=flext-$(RTSYS)
endif
else
ifdef THREADED
ifdef DEBUG
FLEXTNAME=flext-$(RTSYS)_td
else
FLEXTNAME=flext-$(RTSYS)_t
endif
else
ifdef DEBUG
FLEXTNAME=flext-$(RTSYS)_d
else
FLEXTNAME=flext-$(RTSYS)
endif
endif
endif # SHARED
##############################################
# build subdirectories
##############################################
ifdef FLEXTBUILD
ifdef SHARED
ifdef DEBUG
OUTSUB=dd
else
OUTSUB=dr
endif
else # SHARED
ifdef THREADED
ifdef DEBUG
OUTSUB=td
else
OUTSUB=tr
endif
else
ifdef DEBUG
OUTSUB=sd
else
OUTSUB=sr
endif
endif
endif # SHARED
else # FLEXTBUILD
OUTSUB=.
endif # FLEXTBUILD
|