-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
105 lines (81 loc) · 2.71 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/usr/bin/make -f
# Makefile for DISTRHO Plugins #
# ---------------------------- #
# Created by falkTX, Christopher Arndt, and Patrick Desaulniers
#
# --------------------------------------------------------------
# Installation directories
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
LIBDIR ?= $(PREFIX)/lib
DSSI_DIR ?= $(LIBDIR)/dssi
LADSPA_DIR ?= $(LIBDIR)/ladspa
ifneq ($(MACOS_OR_WINDOWS),true)
export LV2_DIR ?= $(LIBDIR)/lv2
VST_DIR ?= $(LIBDIR)/vst
endif
ifeq ($(MACOS),true)
LV2_DIR ?= /Library/Audio/Plug-Ins/LV2
VST_DIR ?= /Library/Audio/Plug-Ins/VST
endif
ifeq ($(WINDOWS),true)
LV2_DIR ?= $(COMMONPROGRAMFILES)/LV2
VST_DIR ?= $(COMMONPROGRAMFILES)/VST2
endif
export BINDIR DSSI_DIR LADSPA_DIR LIBDIR LV2_DIR VST_DIR
USER_DSSI_DIR ?= $(HOME)/.dssi
USER_LADSPA_DIR ?= $(HOME)/.ladspa
ifneq ($(MACOS_OR_WINDOWS),true)
USER_LV2_DIR ?= $(HOME)/.lv2
USER_VST_DIR ?= $(HOME)/.vst
endif
ifeq ($(MACOS),true)
USER_LV2_DIR ?= $(HOME)/Library/Audio/Plug-Ins/LV2
USER_VST_DIR ?= $(HOME)/Library/Audio/Plug-Ins/VST
endif
ifeq ($(WINDOWS),true)
USER_LV2_DIR ?= $(APPDATA)/LV2
USER_VST_DIR ?= $(APPDATA)/VST
endif
export USER_DSSI_DIR USER_LADSPA_DIR USER_LV2_DIR USER_VST_DIR
GAMMA_DIR ?= $(shell pwd)/gamma
GAMMA_INCLUDE_DIR ?= $(GAMMA_DIR)
GAMMA_LIB_DIR ?= $(GAMMA_DIR)/build/lib
export GAMMA_DIR GAMMA_INCLUDE_DIR GAMMA_LIB_DIR
# --------------------------------------------------------------
include dpf/Makefile.base.mk
all: libs plugins gen
# --------------------------------------------------------------
submodules:
git submodule update --init --recursive
libs:
$(MAKE) NO_AUDIO_IO=1 NO_SOUNDFILE=0 DYNAMIC=1 -C gamma
@ln -sf libGamma.1.0.so $(GAMMA_LIB_DIR)/libGamma.1.so
@ln -sf libGamma.1.0.so $(GAMMA_LIB_DIR)/libGamma.so
plugins: libs
$(MAKE) all -C plugins/SimpleFMSynth
ifneq ($(CROSS_COMPILING),true)
gen: plugins dpf/utils/lv2_ttl_generator
LD_LIBRARY_PATH=$(GAMMA_LIB_DIR) $(CURDIR)/dpf/utils/generate-ttl.sh
ifeq ($(MACOS),true)
@$(CURDIR)/dpf/utils/generate-vst-bundles.sh
endif
dpf/utils/lv2_ttl_generator:
LD_LIBRARY_PATH=$(GAMMA_LIB_DIR) $(MAKE) -C dpf/utils/lv2-ttl-generator
else
gen: plugins dpf/utils/lv2_ttl_generator.exe
LD_LIBRARY_PATH=$(GAMMA_LIB_DIR) $(CURDIR)/dpf/utils/generate-ttl.sh
dpf/utils/lv2_ttl_generator.exe:
$(MAKE) -C dpf/utils/lv2-ttl-generator WINDOWS=true
endif
# --------------------------------------------------------------
clean:
$(MAKE) clean -C dpf/utils/lv2-ttl-generator
$(MAKE) clean -C plugins/SimpleFMSynth
rm -rf bin build
install: all
$(MAKE) install -C plugins/SimpleFMSynth
install-user: all
$(MAKE) install-user -C plugins/SimpleFMSynth
# --------------------------------------------------------------
.PHONY: all clean install install-user submodule libs plugins gen