diff --git a/templates/lv2-make/Makefile b/templates/lv2-make/Makefile index 61dda15..562746b 100644 --- a/templates/lv2-make/Makefile +++ b/templates/lv2-make/Makefile @@ -52,10 +52,10 @@ DATA_DIR := $(or $(DATA_DIR),.) PLUGIN_DIR := $(or $(PLUGIN_DIR),src) CFLAGS := -O3 -Wall -Wpedantic -Wextra -CFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -fPIC $(CFLAGS) $(CFLAGS_EXTRA) +CFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) $(shell pkg-config --cflags lv2) -fPIC $(CFLAGS) $(CFLAGS_EXTRA) LDFLAGS := -LDFLAGS_ALL := -shared $(LDFLAGS) $(LDFLAGS_EXTRA) +LDFLAGS_ALL := -shared $(shell pkg-config --libs lv2) $(LDFLAGS) $(LDFLAGS_EXTRA) CXXFLAGS := $(CFLAGS) CXXFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -fPIC $(CXXFLAGS) $(CXXFLAGS_EXTRA) diff --git a/templates/vst3/src/vst3.c b/templates/vst3/src/vst3.c index 503e0d5..29dc96e 100644 --- a/templates/vst3/src/vst3.c +++ b/templates/vst3/src/vst3.c @@ -59,7 +59,7 @@ typedef struct { # include #endif #ifdef __APPLE__ -# include +# include #endif #if defined(__i386__) || defined(__x86_64__)