diff --git a/templates/cmd-make/Makefile b/templates/cmd-make/Makefile index fd200c2..6e472dc 100644 --- a/templates/cmd-make/Makefile +++ b/templates/cmd-make/Makefile @@ -33,7 +33,7 @@ endif PROGRAM = ${BUNDLE_NAME}${EXE_SUFFIX} -C_SRCS = ${COMMON_DIR}/src/main.c ${TINYWAV_DIR}/tinywav.c ${MIDI_PARSER_DIR}/src/midi-parser.c ${C_SRCS_EXTRA} +C_SRCS = ${COMMON_DIR}/src/main.c ${MIDI_PARSER_DIR}/src/midi-parser.c ${C_SRCS_EXTRA} C_OBJS = $(addprefix build/obj/, $(notdir $(C_SRCS:.c=.o))) CXX_SRCS = ${CXX_SRCS_EXTRA} @@ -42,7 +42,7 @@ CXX_OBJS = $(addprefix build/obj/, $(notdir $(CXX_SRCS:.cpp=.o))) all: build/${PROGRAM} ifeq ($(CXX_OBJS),) -build/${PROGRAM}: ${C_OBJS} | build +build/${PROGRAM}: ${C_OBJS} build/obj/tinywav.o | build ${CC} $^ -o $@ ${CFLAGS_ALL} ${LDFLAGS_ALL} else build/${PROGRAM}: ${C_OBJS} ${CXX_OBJS} | build @@ -69,6 +69,9 @@ endif PERCENT := % +build/obj/tinywav.o: ${TINYWAV_DIR}/tinywav.c + ${CC} $^ -o $@ -c ${CFLAGS_ALL} -Wno-unused-result + $(C_OBJS): build/obj/%.o: $$(filter $$(PERCENT)/$$(basename $$(notdir $$@)).c,$$(C_SRCS)) | build/obj ${CC} $^ -o $@ -c ${CFLAGS_ALL} diff --git a/templates/vst3/src/vst3.c b/templates/vst3/src/vst3.c index cf44e2b..9367178 100644 --- a/templates/vst3/src/vst3.c +++ b/templates/vst3/src/vst3.c @@ -2,7 +2,10 @@ #include #include #include +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpedantic" #include "vst3_c_api.h" +#pragma GCC diagnostic pop #include "data.h" #include "plugin.h"