tibia/templates/lv2-make/Makefile

25 lines
510 B
Makefile
Raw Normal View History

2024-01-05 13:45:14 +00:00
include vars.mk
CC = gcc
CFLAGS = -fPIC -Wall -Wpedantic -Wextra -Wno-unused-parameter
BUNDLE_DIR = ${BUNDLE_NAME}.lv2
2024-01-09 10:47:25 +00:00
SO_FILE = ${BUNDLE_NAME}.so
2024-01-05 13:45:14 +00:00
all: build/${BUNDLE_DIR}/manifest.ttl build/${BUNDLE_DIR}/${SO_FILE}
build/${BUNDLE_DIR}/manifest.ttl: data/manifest.ttl | build/${BUNDLE_DIR}
cp $^ $@
build/${BUNDLE_DIR}/${SO_FILE}: src/lv2.c | build/${BUNDLE_DIR}
2024-01-09 10:47:25 +00:00
${CC} $^ -o $@ ${CFLAGS} ${CFLAGS_EXTRA} ${LIBS_EXTRA} -shared
2024-01-05 13:45:14 +00:00
build/${BUNDLE_DIR}:
mkdir -p $@
clean:
rm -fr build
2024-01-09 10:47:25 +00:00
.PHONY: all clean