summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 330114f..6f10233 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,9 +1,12 @@
INCLUDES = -DCONF_PREFIX=\"$(sysconfdir)\"
-lib_LTLIBRARIES = libsnmp_regex.la
-libsnmp_regex_la_LDFLAGS =
-libsnmp_regex_la_SOURCES = regex_tree.c regex_tree.h regex_oid.h \
- bsnmp-regex.c
+
+moduledir = $(prefix)/lib
+module_LTLIBRARIES = snmp_regex.la
+
+snmp_regex_la_LDFLAGS = -module
+snmp_regex_la_SOURCES = regex_tree.c regex_tree.h regex_oid.h \
+ bsnmp-regex.c
regex_tree.c: regex-tree.def
gensnmptree -p regex_ < regex-tree.def