summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-02-17 08:08:42 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-02-17 08:08:42 +0000
commitca8b6a08ff5ed120903784a78fbbd9737c785cab (patch)
treee0992b5a9bd25ca0cc1ee20005575086ba53f7e7 /Makefile
parent5a6ed33a3f09a18b0fefc1803977e3a1c3725cdb (diff)
NetBSD flags.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c1ab0939..2cde9b64 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.111 2009-02-08 14:11:37 nicm Exp $
+# $Id: Makefile,v 1.112 2009-02-17 08:08:42 nicm Exp $
.SUFFIXES: .c .o .y .h
.PHONY: clean update-index.html upload-index.html
@@ -88,6 +88,14 @@ CFLAGS+= -DUSE_LIBUTIL_H -DNO_QUEUE_H -DNO_TREE_H
LIBS+= -lcrypt
.endif
+# NetBSD
+.if ${OS} == "NetBSD"
+INCDIRS+= -Icompat
+SRCS+= compat/strtonum.c compat/vis.c
+LIBS+= -lcrypt
+CFLAGS+=-DNO_STRTONUM
+.endif
+
OBJS= ${SRCS:S/.c/.o/:S/.y/.o/}
DISTDIR= ${PROG}-${VERSION}