2023-12-11 17:54:54 +00:00
|
|
|
include vars.mk
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -fPIC -Wall -Wpedantic -Wextra -Wno-unused-parameter
|
2024-01-13 08:24:06 +00:00
|
|
|
LIBS = -lm
|
2023-12-11 17:54:54 +00:00
|
|
|
|
|
|
|
BUNDLE_DIR = ${BUNDLE_NAME}.vst3
|
|
|
|
|
2024-01-09 10:47:25 +00:00
|
|
|
SO_DIR = $(shell uname -m)-linux
|
|
|
|
SO_FILE = ${SO_DIR}/${BUNDLE_NAME}.so
|
2023-12-11 17:54:54 +00:00
|
|
|
|
|
|
|
all: build/${BUNDLE_DIR}/Contents/Info.plist build/${BUNDLE_DIR}/Contents/${SO_FILE}
|
|
|
|
|
|
|
|
build/${BUNDLE_DIR}/Contents/Info.plist: data/Info.plist | build/${BUNDLE_DIR}/Contents
|
|
|
|
cp $^ $@
|
|
|
|
|
|
|
|
build/${BUNDLE_DIR}/Contents/${SO_FILE}: src/vst3.c | build/${BUNDLE_DIR}/Contents/${SO_DIR}
|
2024-01-13 08:24:06 +00:00
|
|
|
${CC} $^ -o $@ ${CFLAGS} ${CFLAGS_EXTRA} ${LIBS} ${LIBS_EXTRA} -shared
|
2023-12-11 17:54:54 +00:00
|
|
|
|
|
|
|
build/${BUNDLE_DIR}/Contents build/${BUNDLE_DIR}/Contents/${SO_DIR}:
|
|
|
|
mkdir -p $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -fr build
|
|
|
|
|
2024-01-09 10:47:25 +00:00
|
|
|
.PHONY: all clean
|