From 685ec81e127c9409a91299a5ac8415bb94f55ad9 Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Thu, 20 Jun 2024 02:26:38 +0900 Subject: Try to improve the build system --- m4/module.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 m4/module.m4 diff --git a/m4/module.m4 b/m4/module.m4 new file mode 100644 index 0000000..69767d9 --- /dev/null +++ b/m4/module.m4 @@ -0,0 +1,9 @@ +# DISP_MODULE(name, ld_flags) +# Create a new display module, namely a shared library called +# "./.libs/NAME.so.0". LD_FLAGS provides addotionnal libraries to link +# against. +AC_DEFUN([DISP_MODULE], + [noinst_LTLIBRARIES = $1.la + $1_la_SOUCES = $1.c + $1_la_LDFLAGS = -module -rpath @abs_srcdir@ $2 +]) -- cgit v1.2.3