summaryrefslogtreecommitdiffstats
path: root/sbin/camcontrol/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2002-01-17 20:26:14 +0000
committerjoerg <joerg@FreeBSD.org>2002-01-17 20:26:14 +0000
commitd567c0b25ea49bb566bf6feb524d2158ab3cbb7d (patch)
treed68ecb9ad589443ee9f251e8c969c350347f49bf /sbin/camcontrol/Makefile
parente9fbb12a7064582a9d33bc623d0cbc0adddec2f5 (diff)
downloadFreeBSD-src-d567c0b25ea49bb566bf6feb524d2158ab3cbb7d.zip
FreeBSD-src-d567c0b25ea49bb566bf6feb524d2158ab3cbb7d.tar.gz
Provide an option to make camcontrol `minimalistic': if the (env/make)
variable RELEASE_BUILD_FIXIT is defined, a camcontrol binary will be built that only knows the "rescan" and "reset" subcommands. The resulting code is small enough to still fit onto the boot floppy. Reviewed by: ken MFC after: 1 week
Diffstat (limited to 'sbin/camcontrol/Makefile')
-rw-r--r--sbin/camcontrol/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/camcontrol/Makefile b/sbin/camcontrol/Makefile
index 62588e6..60aa44e 100644
--- a/sbin/camcontrol/Makefile
+++ b/sbin/camcontrol/Makefile
@@ -2,11 +2,17 @@
MAINTAINER=ken@FreeBSD.ORG
PROG= camcontrol
-SRCS= camcontrol.c modeedit.c util.c
+SRCS= camcontrol.c util.c
+.if !defined(RELEASE_BUILD_FIXIT)
+SRCS+= modeedit.c
+.endif
MAN= camcontrol.8
SDIR= ${.CURDIR}/../../sys
CFLAGS+= -I${SDIR}
+.if defined(RELEASE_BUILD_FIXIT)
+CFLAGS+= -DMINIMALISTIC
+.endif
WARNS= 0
DPADD= ${LIBCAM} ${LIBSBUF}
LDADD+= -lcam -lsbuf
OpenPOWER on IntegriCloud