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
|
# Please edit PREFIX and INSTALL_DIR to your needs.
BUNDLE = abGate.lv2
PREFIX ?= /usr
INSTALL_DIR ?= $(DESTDIR)$(PREFIX)/lib/lv2
CXXFLAGS ?= -g -O3
CXX ?= g++
PKG_CONFIG ?= pkg-config
$(BUNDLE): manifest.ttl gate.ttl gate.so bypass_on.png bypass_off.png knob.png background.png abGateQt/libabGateQt.so
rm -rf $(BUNDLE)
mkdir $(BUNDLE)
cp $^ $(BUNDLE)
abGateQt/libabGateQt.so:
cd abGateQt; qmake; $(MAKE)
gate.so: gate.cpp
$(CXX) $(LDFLAGS) $(CXXFLAGS) $(CFLAGS) -shared -fPIC -DPIC -Wl,--as-needed gate.cpp `$(PKG_CONFIG) --cflags --libs lv2` -o gate.so
gate_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
$(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
all: $(BUNDLE)
install: $(BUNDLE)
mkdir -p $(INSTALL_DIR)
rm -rf $(INSTALL_DIR)/$(BUNDLE)
cp -R $(BUNDLE) $(INSTALL_DIR)
clean:
rm -rf $(BUNDLE) gate.so gate_gui.so; cd abGateQt; rm -rf libabGateQt.so; $(MAKE) clean; rm -rf Makefile
|