diff DPF-Prymula-audioplugins/dpf/utils/lv2-ttl-generator/GNUmakefile @ 3:84e66ea83026

DPF-Prymula-audioplugins-0.231015-2
author prymula <prymula76@outlook.com>
date Mon, 16 Oct 2023 21:53:34 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DPF-Prymula-audioplugins/dpf/utils/lv2-ttl-generator/GNUmakefile	Mon Oct 16 21:53:34 2023 +0200
@@ -0,0 +1,29 @@
+#!/usr/bin/makefile -f
+
+include ../../Makefile.base.mk
+
+all: build
+
+ifeq ($(WINDOWS),true)
+
+build: ../lv2_ttl_generator.exe
+
+../lv2_ttl_generator.exe: lv2_ttl_generator.c
+	$(CC) $< $(BUILD_C_FLAGS) -o $@ $(LINK_FLAGS) -static
+	touch ../lv2_ttl_generator
+
+else # WINDOWS
+
+ifneq ($(HAIKU_OR_MACOS_OR_WINDOWS),true)
+LINK_FLAGS += -ldl
+endif
+
+build: ../lv2_ttl_generator
+
+../lv2_ttl_generator: lv2_ttl_generator.c
+	$(CC) $< $(BUILD_C_FLAGS) -o $@ $(LINK_FLAGS)
+
+endif # WINDOWS
+
+clean:
+	rm -f ../lv2_ttl_generator ../lv2_ttl_generator.exe