forked from falkTX/Carla-Plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.mk2
174 lines (139 loc) · 6.31 KB
/
Makefile.mk2
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
#!/usr/bin/make -f
# Makefile for native-plugins #
# --------------------------- #
# Created by falkTX
#
# NOTE: this file assumes Makefile.mk has been included before
# dummy first target that does nothing
nothing:
# ---------------------------------------------------------------------------------------------------------------------
# DPF plugins
OBJS += \
$(OBJDIR)/distrho-3bandeq.cpp.o \
$(OBJDIR)/distrho-3bandsplitter.cpp.o \
$(OBJDIR)/distrho-kars.cpp.o \
$(OBJDIR)/distrho-nekobi.cpp.o \
$(OBJDIR)/distrho-pingpongpan.cpp.o
ifeq ($(HAVE_DGL),true)
ifeq ($(HAVE_PROJECTM),true)
OBJS += $(OBJDIR)/distrho-prom.cpp.o
endif
endif
# ---------------------------------------------------------------------------------------------------------------------
# DPF plugins (Juice)
OBJS += \
$(OBJDIR)/distrho-vectorjuice.cpp.o \
$(OBJDIR)/distrho-wobblejuice.cpp.o
# ---------------------------------------------------------------------------------------------------------------------
# ZynAddSubFX
ifeq ($(HAVE_ZYN_DEPS),true)
OBJS += \
$(OBJDIR)/zynaddsubfx-fx.cpp.o \
$(OBJDIR)/zynaddsubfx-src.cpp.o
ifneq ($(SKIP_ZYN_SYNTH),true)
OBJS += \
$(OBJDIR)/zynaddsubfx-synth.cpp.o
endif
ifeq ($(HAVE_ZYN_UI_DEPS),true)
TARGETS += resources/zynaddsubfx-ui$(APP_EXT)
ZYN_UI_FILES_CPP = \
external/zynaddsubfx/UI/ADnoteUI.cpp \
external/zynaddsubfx/UI/BankUI.cpp \
external/zynaddsubfx/UI/ConfigUI.cpp \
external/zynaddsubfx/UI/EffUI.cpp \
external/zynaddsubfx/UI/EnvelopeUI.cpp \
external/zynaddsubfx/UI/FilterUI.cpp \
external/zynaddsubfx/UI/LFOUI.cpp \
external/zynaddsubfx/UI/MasterUI.cpp \
external/zynaddsubfx/UI/MicrotonalUI.cpp \
external/zynaddsubfx/UI/OscilGenUI.cpp \
external/zynaddsubfx/UI/PADnoteUI.cpp \
external/zynaddsubfx/UI/PartUI.cpp \
external/zynaddsubfx/UI/PresetsUI.cpp \
external/zynaddsubfx/UI/ResonanceUI.cpp \
external/zynaddsubfx/UI/SUBnoteUI.cpp \
external/zynaddsubfx/UI/VirKeyboard.cpp
ZYN_UI_FILES_H = \
external/zynaddsubfx/UI/ADnoteUI.h \
external/zynaddsubfx/UI/BankUI.h \
external/zynaddsubfx/UI/ConfigUI.h \
external/zynaddsubfx/UI/EffUI.h \
external/zynaddsubfx/UI/EnvelopeUI.h \
external/zynaddsubfx/UI/FilterUI.h \
external/zynaddsubfx/UI/LFOUI.h \
external/zynaddsubfx/UI/MasterUI.h \
external/zynaddsubfx/UI/MicrotonalUI.h \
external/zynaddsubfx/UI/OscilGenUI.h \
external/zynaddsubfx/UI/PADnoteUI.h \
external/zynaddsubfx/UI/PartUI.h \
external/zynaddsubfx/UI/PresetsUI.h \
external/zynaddsubfx/UI/ResonanceUI.h \
external/zynaddsubfx/UI/SUBnoteUI.h \
external/zynaddsubfx/UI/VirKeyboard.h
endif
endif
# ---------------------------------------------------------------------------------------------------------------------
external/zynaddsubfx/UI/%.cpp: external/zynaddsubfx/UI/%.fl
@echo "Generating $@|h"
@$(FLUID) -c -o external/zynaddsubfx/UI/$*.cpp -h external/zynaddsubfx/UI/$*.h $<
external/zynaddsubfx/UI/%.h: external/zynaddsubfx/UI/%.fl
@echo "Generating $@|cpp"
@$(FLUID) -c -o external/zynaddsubfx/UI/$*.cpp -h external/zynaddsubfx/UI/$*.h $<
# ---------------------------------------------------------------------------------------------------------------------
$(OBJDIR)/distrho-3bandeq.cpp.o: external/distrho-3bandeq.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) -DDISTRHO_NAMESPACE=d3BandEQ -Iexternal/distrho-3bandeq -c -o $@
$(OBJDIR)/distrho-3bandsplitter.cpp.o: external/distrho-3bandsplitter.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) -DDISTRHO_NAMESPACE=d3BandSplitter -Iexternal/distrho-3bandsplitter -c -o $@
$(OBJDIR)/distrho-kars.cpp.o: external/distrho-kars.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) -DDISTRHO_NAMESPACE=dKars -Iexternal/distrho-kars -c -o $@
$(OBJDIR)/distrho-nekobi.cpp.o: external/distrho-nekobi.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) -DDISTRHO_NAMESPACE=dNekobi -Iexternal/distrho-nekobi -w -c -o $@
$(OBJDIR)/distrho-pingpongpan.cpp.o: external/distrho-pingpongpan.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) -DDISTRHO_NAMESPACE=dPingPongPan -Iexternal/distrho-pingpongpan -c -o $@
$(OBJDIR)/distrho-prom.cpp.o: external/distrho-prom.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) $(PROJECTM_FLAGS) -DDISTRHO_NAMESPACE=dProM -Iexternal/distrho-prom -c -o $@
# ---------------------------------------------------------------------------------------------------------------------
$(OBJDIR)/distrho-vectorjuice.cpp.o: external/distrho-vectorjuice.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) -DDISTRHO_NAMESPACE=dVectorJuice -Iexternal/distrho-vectorjuice -c -o $@
$(OBJDIR)/distrho-wobblejuice.cpp.o: external/distrho-wobblejuice.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) $(DPF_FLAGS) -DDISTRHO_NAMESPACE=dWobbleJuice -Iexternal/distrho-wobblejuice -c -o $@
# ---------------------------------------------------------------------------------------------------------------------
$(OBJDIR)/zynaddsubfx-fx.cpp.o: external/zynaddsubfx-fx.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) $(ZYN_DSP_FLAGS) -c -o $@
$(OBJDIR)/zynaddsubfx-synth.cpp.o: external/zynaddsubfx-synth.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) $(ZYN_DSP_FLAGS) -Wno-unused-parameter -c -o $@
$(OBJDIR)/zynaddsubfx-src.cpp.o: external/zynaddsubfx-src.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) $(ZYN_DSP_FLAGS) -Wno-unused-parameter -Wno-unused-variable -c -o $@
$(OBJDIR)/zynaddsubfx-ui.cpp.o: external/zynaddsubfx-ui.cpp $(ZYN_UI_FILES_H) $(ZYN_UI_FILES_CPP)
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) $(ZYN_UI_FLAGS) -Wno-unused-parameter -Wno-unused-variable -c -o $@
resources/zynaddsubfx-ui$(APP_EXT): $(OBJDIR)/zynaddsubfx-ui.cpp.o
-@mkdir -p ../resources
@echo "Linking zynaddsubfx-ui"
@$(CXX) $^ $(LINK_FLAGS) $(ZYN_UI_LIBS) -o $@
# ---------------------------------------------------------------------------------------------------------------------
-include $(OBJDIR)/zynaddsubfx-ui.cpp.d
# ---------------------------------------------------------------------------------------------------------------------