diff --git a/Makefile b/Makefile index 0aa424f..8ebf418 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ CXXFLAGS += -std=c++20 VST2_SDK_PATH := $(realpath sdk/vst/vstsdk2.4) INCLUDES += -I $(realpath src) INCLUDES += -I $(VST2_SDK_PATH) +INCLUDES += -I $(realpath submodules/dsp) DEFINES += -DVST_2_4_EXTENSIONS=0 -DVST_2_3_EXTENSIONS=1 @@ -18,13 +19,16 @@ CXX_SRCS := src/filter.cpp src/filterMain.cpp CXX_SRCS += $(VST2_SDK_PATH)/public.sdk/source/vst2.x/audioeffect.cpp CXX_SRCS += $(VST2_SDK_PATH)/public.sdk/source/vst2.x/audioeffectx.cpp -LIBS := -lstdc++ +LIBS := -lstdc++ -lm LDFLAGS += $(TARGET_ARCH) $(LIBDIR) -shared all: link test: - make -C ./submodules/dsp/delay/tests/ + make -C ./submodules/dsp/tests/ + +install: all + cp build/linux/$(CONFIG)/Filter/JayFilter.so ~/.vst/ include $(MAKE_HOME)/compile.mk include $(MAKE_HOME)/link.mk diff --git a/rebuild_compile_commands.sh b/rebuild_compile_commands.sh index a56d715..ca7cde4 100755 --- a/rebuild_compile_commands.sh +++ b/rebuild_compile_commands.sh @@ -4,7 +4,7 @@ OUTPUT=build/compile_commands.json make clean bear --config /home/jens/work/repos/JayFilter/.vscode/c_cpp_properties.json --append --output $OUTPUT -- make -make -C submodules/dsp/delay/tests/ clean -bear --config /home/jens/work/repos/JayFilter/.vscode/c_cpp_properties.json --append --output $OUTPUT -- make -C submodules/dsp/delay/tests/ +make -C submodules/dsp/tests/ clean +bear --config /home/jens/work/repos/JayFilter/.vscode/c_cpp_properties.json --append --output $OUTPUT -- make -C submodules/dsp/tests/