You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dexed/src/Makefile

88 lines
2.1 KiB

BUNDLE=dexed.lv2
INSTALL_DIR=/home/pi/zynthian/zynthian-plugins/mod-lv2
TARGET=dexed.so
OBJ=fm_core.o env.o lfo.o dx7note.o sin.o pitchenv.o fm_op_kernel.o freqlut.o exp2.o EngineMkI.o EngineOpl.o PluginFx.o trace.o
8 years ago
CFLAGS=-fPIC -DPIC -std=c++11 -I. -I/usr/local/include/lvtk-2
LDFLAGS=-L/usr/local/lib -llvtk_plugin2
8 years ago
ifeq ($(ARCH),)
ARCH := $(shell uname -m)
endif
ifneq ($(findstring armv7,$(ARCH)),)
CXXFLAGS += -mfpu=neon -march=armv7-a -marm
endif
ifeq ($(DEBUG), 1)
CXXFLAGS += -DDEBUG $(CFLAGS)
else
CXXFLAGS += -Ofast $(CFLAGS)
endif
all: $(BUNDLE) Makefile
clean: Makefile
8 years ago
rm -f *.o *~ *.bak *.gch dexed.peg *.so *.gch msfa/*.gch
rm -rf $(BUNDLE)
install: $(BUNDLE)
mkdir -p $(INSTALL_DIR)
rm -rf $(INSTALL_DIR)/$(BUNDLE)
rm -rf ${HOME}/.lv2/$(BUNDLE)
cp -R $(BUNDLE) $(INSTALL_DIR)
$(BUNDLE): manifest.ttl Dexed.ttl dexed.so
rm -rf $(BUNDLE)
mkdir $(BUNDLE)
cp $^ $(BUNDLE)
# cp -R modgui $(BUNDLE)
dexed.so: $(OBJ) dexed.o
8 years ago
$(CXX) $(CXXFLAGS) -shared dexed.o $(OBJ) $(LDFLAGS) -o dexed.so
dexed.o: Makefile dexed.cpp dexed.peg
8 years ago
$(CXX) $(CXXFLAGS) -Wall -c dexed.cpp
trace.o: Makefile trace.c trace.h
8 years ago
$(CXX) $(CXXFLAGS) -Wall -c trace.c
8 years ago
fm_core.o: Makefile msfa/fm_core.cc
8 years ago
$(CXX) $(CXXFLAGS) -Wall -c msfa/fm_core.cc
env.o: Makefile msfa/env.cc
8 years ago
$(CXX) $(CXXFLAGS) -Wall -c msfa/env.cc
lfo.o: Makefile msfa/lfo.cc
8 years ago
$(CXX) $(CXXFLAGS) -Wall -c msfa/lfo.cc
dx7note.o: Makefile msfa/dx7note.cc
8 years ago
$(CXX) $(CXXFLAGS) -Wall -c msfa/dx7note.cc
sin.o: Makefile msfa/sin.cc
8 years ago
$(CXX) $(CXXFLAGS) -Wall -c msfa/sin.cc
pitchenv.o: Makefile msfa/pitchenv.cc
8 years ago
$(CXX) $(CXXFLAGS) -Wall -c msfa/pitchenv.cc
fm_op_kernel.o: Makefile msfa/fm_op_kernel.cc
8 years ago
$(CXX) $(CXXFLAGS) -Wall -c msfa/fm_op_kernel.cc
freqlut.o: Makefile msfa/freqlut.cc
8 years ago
$(CXX) $(CXXFLAGS) -Wall -c msfa/freqlut.cc
exp2.o: Makefile msfa/exp2.cc
8 years ago
$(CXX) $(CXXFLAGS) -Wall -c msfa/exp2.cc
EngineMkI.o: Makefile EngineMkI.cpp
8 years ago
$(CXX) $(CXXFLAGS) -Wall -c EngineMkI.cpp
EngineOpl.o: Makefile EngineOpl.cpp
8 years ago
$(CXX) $(CXXFLAGS) -Wall -c EngineOpl.cpp
PluginFx.o: Makefile PluginFx.cpp
8 years ago
$(CXX) $(CXXFLAGS) -Wall -c PluginFx.cpp
dexed.peg: Dexed.ttl
lv2peg Dexed.ttl dexed.peg