summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-11-26 15:36:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-11-26 15:36:41 +0000
commit61b591d4724fe059ead2ae8a9d2c63137083b0e6 (patch)
tree3f127d52ed762053ea4709d45b0f803665cd5945
parent32b4fa08846f6a470f84cd297e2bda89b77a1102 (diff)
build our own newfs binary for the media -- without MFS support -- to
save space.
-rw-r--r--distrib/special/Makefile4
-rw-r--r--distrib/special/newfs/Makefile15
2 files changed, 17 insertions, 2 deletions
diff --git a/distrib/special/Makefile b/distrib/special/Makefile
index 9f817e2183e..62381b606b3 100644
--- a/distrib/special/Makefile
+++ b/distrib/special/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.16 2007/02/14 23:38:21 deraadt Exp $
+# $OpenBSD: Makefile,v 1.17 2007/11/26 15:36:38 deraadt Exp $
-SUBDIR= dd ftp pppd rsh dhclient init disknames dmesg grep kbd less \
+SUBDIR= dd ftp pppd rsh dhclient init disknames dmesg grep kbd newfs less \
more gzip ccdconfig ifconfig libstubs
install:
diff --git a/distrib/special/newfs/Makefile b/distrib/special/newfs/Makefile
new file mode 100644
index 00000000000..6433c7f66cb
--- /dev/null
+++ b/distrib/special/newfs/Makefile
@@ -0,0 +1,15 @@
+# $OpenBSD: Makefile,v 1.1 2007/11/26 15:36:40 deraadt Exp $
+
+PROG= newfs
+MAN=
+SRCS= dkcksum.c getmntopts.c newfs.c mkfs.c
+COPTS+=-Os
+CFLAGS+= -I${.CURDIR}/../../../sbin/mount
+.PATH: ${.CURDIR}/../../../sbin/newfs
+.PATH: ${.CURDIR}/../../../sbin/mount
+.PATH: ${.CURDIR}/../../../sbin/disklabel
+
+LDADD+= -lutil
+DPADD+= ${LIBUTIL}
+
+.include <bsd.prog.mk>