|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- #!/usr/bin/make -f
- # Makefile for native-plugins #
- # --------------------------- #
- # Created by falkTX
- #
-
- CWD=..
- MODULENAME=native-plugins
- include ../modules/Makefile.mk
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- BUILD_C_FLAGS += -I..
- BUILD_CXX_FLAGS += -I.. -isystem $(CWD)/modules -I$(CWD)/modules/distrho
-
- # ----------------------------------------------------------------------------------------------------------------------------
- # Flags for ZynAddSubFX
-
- ifeq ($(HAVE_ZYN_DEPS),true)
- ZYN_CXX_FLAGS = $(BUILD_CXX_FLAGS) -isystem zynaddsubfx
- ZYN_CXX_FLAGS += $(shell pkg-config --cflags fftw3 mxml zlib)
- ifneq ($(MACOS),true)
- ZYN_CXX_FLAGS += -DHAVE_SCHEDULER
- endif
- ifeq ($(HAVE_ZYN_UI_DEPS),true)
- ifeq ($(HAVE_NTK),true)
- FLUID = ntk-fluid
- ZYN_CXX_FLAGS += -DNTK_GUI
- ZYN_CXX_FLAGS += $(shell pkg-config --cflags ntk_images ntk)
- else
- FLUID = fluid
- ZYN_CXX_FLAGS += -DFLTK_GUI
- ZYN_CXX_FLAGS += $(shell fltk-config --use-images --cxxflags)
- endif
- endif
- endif
-
- # ----------------------------------------------------------------------------------------------------------------------------
- # Set objects
-
- OBJS = \
- $(OBJDIR)/_all.c.o \
- $(OBJDIR)/_data.cpp.o
-
- # ----------------------------------------------------------------------------------------------------------------------------
- # Simple plugins
-
- OBJS += \
- $(OBJDIR)/bypass.c.o \
- $(OBJDIR)/lfo.c.o \
- $(OBJDIR)/midi-gain.c.o \
- $(OBJDIR)/midi-split.c.o \
- $(OBJDIR)/midi-through.c.o \
- $(OBJDIR)/midi-transpose.c.o \
- $(OBJDIR)/nekofilter.c.o
-
- OBJS += \
- $(OBJDIR)/audio-file.cpp.o \
- $(OBJDIR)/bigmeter.cpp.o \
- $(OBJDIR)/midi-file.cpp.o \
- $(OBJDIR)/midi-sequencer.cpp.o \
- $(OBJDIR)/notes.cpp.o
-
- # ----------------------------------------------------------------------------------------------------------------------------
- # DISTRHO plugins
-
- OBJS += \
- $(OBJDIR)/distrho-3bandeq.cpp.o \
- $(OBJDIR)/distrho-3bandsplitter.cpp.o \
- $(OBJDIR)/distrho-mverb.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
-
- # ----------------------------------------------------------------------------------------------------------------------------
- # DISTRHO 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-synth.cpp.o \
- $(OBJDIR)/zynaddsubfx-src.cpp.o
-
- ifeq ($(HAVE_ZYN_UI_DEPS),true)
- OBJS += \
- $(OBJDIR)/zynaddsubfx-ui.cpp.o
-
- ZYN_UI_FILES_CPP = \
- zynaddsubfx/UI/ADnoteUI.cpp \
- zynaddsubfx/UI/BankUI.cpp \
- zynaddsubfx/UI/ConfigUI.cpp \
- zynaddsubfx/UI/EffUI.cpp \
- zynaddsubfx/UI/EnvelopeUI.cpp \
- zynaddsubfx/UI/FilterUI.cpp \
- zynaddsubfx/UI/LFOUI.cpp \
- zynaddsubfx/UI/MasterUI.cpp \
- zynaddsubfx/UI/MicrotonalUI.cpp \
- zynaddsubfx/UI/OscilGenUI.cpp \
- zynaddsubfx/UI/PADnoteUI.cpp \
- zynaddsubfx/UI/PartUI.cpp \
- zynaddsubfx/UI/PresetsUI.cpp \
- zynaddsubfx/UI/ResonanceUI.cpp \
- zynaddsubfx/UI/SUBnoteUI.cpp \
- zynaddsubfx/UI/VirKeyboard.cpp
-
- ZYN_UI_FILES_H = \
- zynaddsubfx/UI/ADnoteUI.h \
- zynaddsubfx/UI/BankUI.h \
- zynaddsubfx/UI/ConfigUI.h \
- zynaddsubfx/UI/EffUI.h \
- zynaddsubfx/UI/EnvelopeUI.h \
- zynaddsubfx/UI/FilterUI.h \
- zynaddsubfx/UI/LFOUI.h \
- zynaddsubfx/UI/MasterUI.h \
- zynaddsubfx/UI/MicrotonalUI.h \
- zynaddsubfx/UI/OscilGenUI.h \
- zynaddsubfx/UI/PADnoteUI.h \
- zynaddsubfx/UI/PartUI.h \
- zynaddsubfx/UI/PresetsUI.h \
- zynaddsubfx/UI/ResonanceUI.h \
- zynaddsubfx/UI/SUBnoteUI.h \
- zynaddsubfx/UI/VirKeyboard.h
- endif
- endif
-
- # ----------------------------------------------------------------------------------------------------------------------------
- # Experimental plugins
-
- ifeq ($(EXPERIMENTAL_PLUGINS),true)
- OBJS += \
- $(OBJDIR)/zita-at1.cpp.o \
- $(OBJDIR)/zita-bls1.cpp.o \
- $(OBJDIR)/zita-rev1.cpp.o
- endif
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- all: $(MODULEDIR)/$(MODULENAME).a
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- clean:
- rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a $(ZYN_UI_FILES_H) $(ZYN_UI_FILES_CPP)
-
- debug:
- $(MAKE) DEBUG=true
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
- -@mkdir -p $(MODULEDIR)
- @echo "Creating $(MODULENAME).a"
- @rm -f $@
- @$(AR) crs $@ $^
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- zynaddsubfx/UI/%.cpp: zynaddsubfx/UI/%.fl
- @echo "Generating $@/h"
- @$(FLUID) -c -o zynaddsubfx/UI/$*.cpp -h zynaddsubfx/UI/$*.h $<
-
- zynaddsubfx/UI/%.h: zynaddsubfx/UI/%.fl
- @echo "Generating $@/cpp"
- @$(FLUID) -c -o zynaddsubfx/UI/$*.cpp -h zynaddsubfx/UI/$*.h $<
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/_all.c.o: _all.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CC) $< $(BUILD_C_FLAGS) -c -o $@
-
- $(OBJDIR)/%.c.o: %.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CC) $< $(BUILD_C_FLAGS) -c -o $@
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/distrho-3bandeq.cpp.o: distrho-3bandeq.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -DDISTRHO_NAMESPACE=DISTRHO_3BandEQ -Idistrho-3bandeq -I$(CWD)/modules/dgl -Wno-effc++ -c -o $@
-
- $(OBJDIR)/distrho-3bandsplitter.cpp.o: distrho-3bandsplitter.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -DDISTRHO_NAMESPACE=DISTRHO_3BandSplitter -Idistrho-3bandsplitter -I$(CWD)/modules/dgl -Wno-effc++ -c -o $@
-
- $(OBJDIR)/distrho-mverb.cpp.o: distrho-mverb.cpp
- -@mkdir -p $(OBJDIR)
- # FIXME - fix mverb strict warnings
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -DDISTRHO_NAMESPACE=DISTRHO_MVerb -Idistrho-mverb -I$(CWD)/modules/dgl -Wno-conversion -Wno-effc++ -Wno-shadow -c -o $@
-
- $(OBJDIR)/distrho-nekobi.cpp.o: distrho-nekobi.cpp
- -@mkdir -p $(OBJDIR)
- # FIXME - fix nekobi strict warnings
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -DDISTRHO_NAMESPACE=DISTRHO_Nekobi -Idistrho-nekobi -I$(CWD)/modules/dgl -w -c -o $@
-
- $(OBJDIR)/distrho-pingpongpan.cpp.o: distrho-pingpongpan.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -DDISTRHO_NAMESPACE=DISTRHO_PingPongPan -Idistrho-pingpongpan -I$(CWD)/modules/dgl -Wno-effc++ -c -o $@
-
- $(OBJDIR)/distrho-prom.cpp.o: distrho-prom.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) $(PROJECTM_FLAGS) -DDISTRHO_NAMESPACE=DISTRHO_ProM -Idistrho-prom -I$(CWD)/modules/dgl -Wno-effc++ -c -o $@
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/distrho-vectorjuice.cpp.o: distrho-vectorjuice.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -DDISTRHO_NAMESPACE=DISTRHO_VectorJuice -Idistrho-vectorjuice -I$(CWD)/modules/dgl -Wno-effc++ -c -o $@
-
- $(OBJDIR)/distrho-wobblejuice.cpp.o: distrho-wobblejuice.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -DDISTRHO_NAMESPACE=DISTRHO_WobbleJuice -Idistrho-wobblejuice -I$(CWD)/modules/dgl -Wno-effc++ -c -o $@
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/zynaddsubfx-fx.cpp.o: zynaddsubfx-fx.cpp $(ZYN_UI_FILES_H)
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@
-
- $(OBJDIR)/zynaddsubfx-synth.cpp.o: zynaddsubfx-synth.cpp $(ZYN_UI_FILES_H)
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(ZYN_CXX_FLAGS) -c -o $@
-
- $(OBJDIR)/zynaddsubfx-src.cpp.o: zynaddsubfx-src.cpp $(ZYN_UI_FILES_H)
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(ZYN_CXX_FLAGS) -w -c -o $@
-
- $(OBJDIR)/zynaddsubfx-ui.cpp.o: zynaddsubfx-ui.cpp $(ZYN_UI_FILES_H) $(ZYN_UI_FILES_CPP)
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(ZYN_CXX_FLAGS) -w -c -o $@
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/zita-at1.cpp.o: zita-at1.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) $(shell pkg-config --cflags fftw3f x11 xft) -Wno-unused-parameter -Wno-unused-result -c -o $@
-
- $(OBJDIR)/zita-bls1.cpp.o: zita-bls1.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) $(shell pkg-config --cflags cairo fftw3f libpng12 x11 xft) -Wno-unused-parameter -Wno-unused-result -c -o $@
-
- $(OBJDIR)/zita-rev1.cpp.o: zita-rev1.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) $(shell pkg-config --cflags fftw3f x11 xft) -Wno-unused-parameter -Wno-unused-result -c -o $@
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/%.cpp.o: %.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- -include $(OBJS:%.o=%.d)
-
- # ----------------------------------------------------------------------------------------------------------------------------
|