forked from DISTRHO/DPF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
85 lines (72 loc) · 2.12 KB
/
Makefile
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
#!/usr/bin/make -f
# Makefile for DPF #
# ---------------- #
# Created by falkTX
#
include Makefile.base.mk
all: dgl examples gen
# --------------------------------------------------------------
ifneq ($(CROSS_COMPILING),true)
CAN_GENERATE_TTL = true
else ifneq ($(EXE_WRAPPER),)
CAN_GENERATE_TTL = true
endif
dgl:
$(MAKE) -C dgl
examples: dgl
$(MAKE) all -C examples/CVPort
$(MAKE) all -C examples/FileHandling
$(MAKE) all -C examples/Info
$(MAKE) all -C examples/Latency
$(MAKE) all -C examples/Meters
$(MAKE) all -C examples/Metronome
$(MAKE) all -C examples/MidiThrough
$(MAKE) all -C examples/Parameters
$(MAKE) all -C examples/SendNote
$(MAKE) all -C examples/States
ifeq ($(HAVE_CAIRO),true)
$(MAKE) all -C examples/CairoUI
endif
# ifneq ($(MACOS_OR_WINDOWS),true)
# # ExternalUI is WIP
# $(MAKE) all -C examples/ExternalUI
# install -d bin/d_extui-dssi
# install -d bin/d_extui.lv2
# install -m 755 examples/ExternalUI/ExternalLauncher.sh bin/d_extui.sh
# install -m 755 examples/ExternalUI/ExternalLauncher.sh bin/d_extui-dssi/d_extui.sh
# install -m 755 examples/ExternalUI/ExternalLauncher.sh bin/d_extui.lv2/d_extui.sh
# endif
ifeq ($(CAN_GENERATE_TTL),true)
gen: examples utils/lv2_ttl_generator
@$(CURDIR)/utils/generate-ttl.sh
ifeq ($(MACOS),true)
@$(CURDIR)/utils/generate-vst-bundles.sh
endif
utils/lv2_ttl_generator:
$(MAKE) -C utils/lv2-ttl-generator
else
gen:
endif
tests: dgl
$(MAKE) -C tests
# --------------------------------------------------------------
clean:
$(MAKE) clean -C dgl
$(MAKE) clean -C examples/CVPort
$(MAKE) clean -C examples/CairoUI
$(MAKE) clean -C examples/FileHandling
$(MAKE) clean -C examples/Info
$(MAKE) clean -C examples/Latency
$(MAKE) clean -C examples/Meters
$(MAKE) clean -C examples/Metronome
$(MAKE) clean -C examples/MidiThrough
$(MAKE) clean -C examples/Parameters
$(MAKE) clean -C examples/SendNote
$(MAKE) clean -C examples/States
$(MAKE) clean -C utils/lv2-ttl-generator
ifneq ($(MACOS_OR_WINDOWS),true)
$(MAKE) clean -C examples/ExternalUI
endif
rm -rf bin build
# --------------------------------------------------------------
.PHONY: dgl examples tests