From ca1c9887828a6215ea58b397171d05484a4be513 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Mon, 16 Jan 2017 13:56:42 +0100 Subject: [PATCH] Changed flags for lvtk2 to creating by pkgconfig. --- src/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 7c96700..ef0793d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,8 +3,12 @@ INSTALL_DIR=/zynthian/zynthian-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 -CFLAGS=-fPIC -DPIC -std=c++11 -I. -I/usr/local/include/lvtk-2 -DLVTK_DEBUG=false -LDFLAGS=-L/usr/local/lib -llvtk_plugin2 +#CFLAGS=-fPIC -DPIC -std=c++11 -I. -I/usr/local/include/lvtk-2 -DLVTK_DEBUG=false +CFLAGS_LVTK=$(shell pkg-config --cflags --libs lvtk-plugin-2) +CFLAGS=-fPIC -DPIC -std=c++11 -I. $(CFLAGS_LVTK) -DLVTK_DEBUG=false +#LDFLAGS=-L/usr/local/lib -llvtk_plugin2 +LDFLAGS_LVTK=$(shell pkg-config --ldflags --libs lvtk-plugin-2) +LDFLAGS=-L/usr/local/lib $(LDFLAGS_LVTK) #DEBUG=1 #FILETRACE=1