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 54473b1..859f4e9 100644 --- a/templates/vst3/src/vst3.c +++ b/templates/vst3/src/vst3.c @@ -58,6 +58,9 @@ typedef struct { #else # include #endif +#ifdef __APPLE__ +# include +#endif #if defined(__i386__) || defined(__x86_64__) #include @@ -1017,7 +1020,6 @@ static Steinberg_ITimerHandlerVtbl timerHandlerVtblITimerHandler = { # elif defined(__APPLE__) -# include # include # include # include