1# Please edit PREFIX and INSTALL_DIR to your needs. 2 3BUNDLE = abGate.lv2 4PREFIX ?= /usr 5INSTALL_DIR ?= $(DESTDIR)$(PREFIX)/lib/lv2 6CXXFLAGS ?= 7CXX ?= $(CXX) 8 9$(BUNDLE): manifest.ttl gate.ttl gate.so gate_gui.so bypass_on.png bypass_off.png knob.png background.png abGateQt/libabGateQt.so 10 rm -rf $(BUNDLE) 11 mkdir $(BUNDLE) 12 cp $^ $(BUNDLE) 13 14abGateQt/libabGateQt.so: 15 cd abGateQt; qmake; $(MAKE) 16 17gate.so: gate.cpp 18 $(CXX) $(LDFLAGS) $(CXXFLAGS) $(CFLAGS) -shared -fPIC -DPIC -Wl,--as-needed gate.cpp `pkg-config --cflags --libs lv2` -o gate.so 19 20gate_gui.so: gate_gui.cpp main_window.cpp main_window.h knob.cpp knob.h toggle.cpp toggle.h preset_widget.cpp preset_widget.h presets.cpp presets.h preset.cpp preset.h gate_const.h plugin_configuration.h 21 $(CXX) $(LDFLAGS) $(CXXFLAGS) $(CFLAGS) -shared -fPIC -DPIC -Wl,--as-needed gate_gui.cpp main_window.cpp knob.cpp toggle.cpp preset_widget.cpp presets.cpp preset.cpp `pkg-config --cflags gtkmm-2.4 --libs lv2 gthread-2.0` -o gate_gui.so 22 23all: $(BUNDLE) 24 25install: $(BUNDLE) 26 mkdir -p $(INSTALL_DIR) 27 rm -rf $(INSTALL_DIR)/$(BUNDLE) 28 cp -R $(BUNDLE) $(INSTALL_DIR) 29 30clean: 31 rm -rf $(BUNDLE) gate.so gate_gui.so; cd abGateQt; rm -rf libabGateQt.so; $(MAKE) clean; rm -rf Makefile 32