aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@bordeaux-inp.fr>2024-06-20 02:26:38 +0900
committerTristan Riehs <tristan.riehs@bordeaux-inp.fr>2024-06-20 02:26:38 +0900
commit685ec81e127c9409a91299a5ac8415bb94f55ad9 (patch)
treee1ccfe168d25cb277d84ad718e46114b75d8525f
parent32a0849f994f5280920cc776b2d6f508bcbc2de6 (diff)
Try to improve the build system
-rw-r--r--m4/module.m49
1 files changed, 9 insertions, 0 deletions
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
+])