12
|
1 #!/usr/bin/make -f
|
|
2 # Makefile for DISTRHO Plugins #
|
|
3 # ---------------------------- #
|
|
4 # Created by falkTX
|
|
5 #
|
|
6
|
|
7 include dpf/Makefile.base.mk
|
|
8
|
|
9 all: dgl plugins gen
|
|
10
|
|
11 # --------------------------------------------------------------
|
|
12
|
|
13 PREFIX ?= /usr/local
|
|
14 DESTDIR ?=
|
|
15
|
|
16 # --------------------------------------------------------------
|
|
17 # Check for system-wide projectM
|
|
18
|
|
19 HAVE_PROJECTM = $(shell pkg-config --exists libprojectM && echo true)
|
|
20
|
|
21 # --------------------------------------------------------------
|
|
22
|
|
23 ifneq ($(CROSS_COMPILING),true)
|
|
24 CAN_GENERATE_TTL = true
|
|
25 else ifneq ($(EXE_WRAPPER),)
|
|
26 CAN_GENERATE_TTL = true
|
|
27 endif
|
|
28
|
|
29 dgl:
|
|
30 ifeq ($(HAVE_CAIRO_OR_OPENGL),true)
|
|
31 $(MAKE) FILE_BROWSER_DISABLED=true -C dpf/dgl
|
|
32 ifeq ($(HAVE_OPENGL),true)
|
|
33 $(MAKE) FILE_BROWSER_DISABLED=true -C dpf/dgl opengl3
|
|
34 endif
|
|
35 endif
|
|
36
|
|
37 plugins: dgl
|
|
38
|
|
39 $(MAKE) all -C plugins/CloneChannel
|
|
40
|
|
41 gen: plugins dpf/utils/lv2_ttl_generator
|
|
42 ifeq ($(CAN_GENERATE_TTL),true)
|
|
43 @$(CURDIR)/dpf/utils/generate-ttl.sh
|
|
44 endif
|
|
45
|
|
46 dpf/utils/lv2_ttl_generator:
|
|
47 $(MAKE) -C dpf/utils/lv2-ttl-generator
|
|
48
|
|
49 # --------------------------------------------------------------
|
|
50
|
|
51 clean:
|
|
52 rm -rf bin build
|
|
53
|
|
54 $(MAKE) clean -C dpf/dgl
|
|
55 $(MAKE) clean -C dpf/utils/lv2-ttl-generator
|
|
56
|
|
57
|
|
58 $(MAKE) clean -C plugins/CloneChannel
|
|
59
|
|
60 # --------------------------------------------------------------
|
|
61
|
|
62 install:
|
|
63 install -d $(DESTDIR)$(PREFIX)/lib/ladspa/
|
|
64 install -d $(DESTDIR)$(PREFIX)/lib/dssi/
|
|
65 install -d $(DESTDIR)$(PREFIX)/lib/lv2/
|
|
66 install -d $(DESTDIR)$(PREFIX)/lib/vst/
|
|
67 install -d $(DESTDIR)$(PREFIX)/lib/vst3/
|
|
68 install -d $(DESTDIR)$(PREFIX)/lib/clap/
|
|
69 install -d $(DESTDIR)$(PREFIX)/bin/
|
|
70
|
|
71 install -m 644 bin/*-ladspa.* $(DESTDIR)$(PREFIX)/lib/ladspa/
|
|
72 install -m 644 bin/*-dssi.* $(DESTDIR)$(PREFIX)/lib/dssi/
|
|
73 ifneq ($(MACOS),true)
|
|
74 install -m 644 bin/*-vst.* $(DESTDIR)$(PREFIX)/lib/vst/
|
|
75 endif
|
|
76
|
|
77 ifeq ($(HAVE_CAIRO_OR_OPENGL),true)
|
|
78 ifeq ($(HAVE_LIBLO),true)
|
|
79 cp -r bin/*-dssi $(DESTDIR)$(PREFIX)/lib/dssi/
|
|
80 endif # HAVE_LIBLO
|
|
81 endif # HAVE_CAIRO_OR_OPENGL
|
|
82 cp -rL bin/*.lv2 $(DESTDIR)$(PREFIX)/lib/lv2/
|
|
83 ifeq ($(HAVE_OPENGL),true)
|
|
84 cp -rL bin/*.vst $(DESTDIR)$(PREFIX)/lib/vst/
|
|
85 endif # HAVE_OPENGL
|
|
86 cp -rL bin/*.vst3 $(DESTDIR)$(PREFIX)/lib/vst3/
|
|
87 cp -rL bin/*.clap $(DESTDIR)$(PREFIX)/lib/clap/
|
|
88
|
|
89 install -m 755 bin/CLoneChannel$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/
|
|
90
|
|
91
|
|
92 # --------------------------------------------------------------
|
|
93
|
|
94 .PHONY: plugins
|