tibia/templates/lv2-make/Makefile

27 lines
535 B
Makefile
Raw Normal View History

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