tibia/templates/vst3-make/Makefile

28 lines
690 B
Makefile
Raw Normal View History

2023-12-11 17:54:54 +00:00
include vars.mk
CC = gcc
2024-01-23 14:18:39 +00:00
2023-12-11 17:54:54 +00:00
CFLAGS = -fPIC -Wall -Wpedantic -Wextra -Wno-unused-parameter
2024-01-23 14:18:39 +00:00
LDFLAGS = -shared -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-23 14:18:39 +00:00
${CC} $^ -o $@ ${CFLAGS} ${CFLAGS_EXTRA} ${LDFLAGS} ${LDFLAGS_EXTRA}
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