summaryrefslogtreecommitdiffstats
path: root/lib/libsmutil/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libsmutil/Makefile')
-rw-r--r--lib/libsmutil/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/libsmutil/Makefile b/lib/libsmutil/Makefile
new file mode 100644
index 0000000..b7e5a69
--- /dev/null
+++ b/lib/libsmutil/Makefile
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
+.PATH: ${SENDMAIL_DIR}/libsmutil
+
+CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
+CFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
+
+# User customizations to the sendmail build environment
+CFLAGS+=${SENDMAIL_CFLAGS}
+
+WARNS?= 2
+
+LIB= smutil
+
+SRCS+= sm_os.h
+SRCS+= debug.c err.c lockfile.c safefile.c snprintf.c cf.c
+CLEANFILES+=sm_os.h
+
+INTERNALLIB=
+
+sm_os.h:
+ ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
+
+.include <bsd.lib.mk>
OpenPOWER on IntegriCloud