Small changes.

pull/1/head
root 8 years ago
parent 7434f44d62
commit 162cda23fc
  1. 21
      src/Makefile

@ -1,20 +1,21 @@
BUNDLE=dexed.lv2 BUNDLE=dexed.lv2
TARGET=dexed.so
#DEBUG=1
#FILETRACE=1
INSTALL_DIR=/zynthian/zynthian-plugins/lv2 INSTALL_DIR=/zynthian/zynthian-plugins/lv2
INSTALL_MYPLUGINS_DIR=/zynthian/zynthian-my-plugins/lv2 INSTALL_MYPLUGINS_DIR=/zynthian/zynthian-my-plugins/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 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
CFLAGS_LVTK=$(shell pkg-config --cflags lvtk-plugin-2) CFLAGS_LVTK=$(shell pkg-config --cflags lvtk-plugin-2)
CFLAGS=-fPIC -DPIC -std=c++11 -I. $(CFLAGS_LVTK) -DLVTK_DEBUG=false CFLAGS=-fPIC -DPIC -std=c++11 -I. $(CFLAGS_LVTK) -DLVTK_DEBUG=false
LDFLAGS_LVTK=$(shell pkg-config --libs lvtk-plugin-2) LDFLAGS_LVTK=$(shell pkg-config --libs lvtk-plugin-2)
LDFLAGS=$(LDFLAGS_LVTK) LDFLAGS_LILV=$(shell pkg-config --libs lilv-0)
#DEBUG=1 LDFLAGS=-shared $(LDFLAGS_LVTK) $(LDFLAGS_LILV)
#FILETRACE=1
ifeq ($(ARCH),)
ARCH := $(shell uname -m)
endif
machine = $(shell sh -c 'uname -m 2>/dev/null || echo unknown') machine = $(shell sh -c 'uname -m 2>/dev/null || echo unknown')
# Intel-PC # Intel-PC
ifneq (,$(findstring x86,$(machine))) ifneq (,$(findstring x86,$(machine)))
CPU = CPU =
@ -53,7 +54,7 @@ ifeq ($(MOD),1)
PLATFORM += -mfpu=neon-vfpv4 -mfloat-abi=hard -mvectorize-with-neon-quad PLATFORM += -mfpu=neon-vfpv4 -mfloat-abi=hard -mvectorize-with-neon-quad
endif endif
CXXFLAGS += $(CPU) $(PLATFORM) CXXFLAGS += $(CPU) $(FPU) $(PLATFORM)
ifeq ($(DEBUG), 1) ifeq ($(DEBUG), 1)
ifeq ($(FILETRACE), 1) ifeq ($(FILETRACE), 1)
@ -86,7 +87,7 @@ $(BUNDLE): manifest.ttl Dexed.ttl modgui.ttl presets.ttl dexed.so
cp -R modgui $(BUNDLE) cp -R modgui $(BUNDLE)
dexed.so: $(OBJ) dexed.o dexed.so: $(OBJ) dexed.o
$(CXX) $(CXXFLAGS) -shared dexed.o $(OBJ) -o dexed.so $(CXX) dexed.o $(OBJ) $(LDFLAGS) -o dexed.so
dexed.o: Makefile dexed.cpp dexed.h dexed_ttl.h dexed.o: Makefile dexed.cpp dexed.h dexed_ttl.h
$(CXX) $(CXXFLAGS) -Wall -c dexed.cpp $(CXX) $(CXXFLAGS) -Wall -c dexed.cpp

Loading…
Cancel
Save