aboutsummaryrefslogtreecommitdiff
path: root/sbin/camcontrol/Makefile
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2002-01-17 20:26:14 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2002-01-17 20:26:14 +0000
commit6437601ca18a597ee5836d19646ae6824f9dab44 (patch)
treed68ecb9ad589443ee9f251e8c969c350347f49bf /sbin/camcontrol/Makefile
parent7f04152a109a83df0f822d7299e0cd1edf99aaa2 (diff)
downloadsrc-6437601ca18a597ee5836d19646ae6824f9dab44.tar.gz
src-6437601ca18a597ee5836d19646ae6824f9dab44.zip
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
Notes
Notes: svn path=/head/; revision=89471
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 62588e67c4ce..60aa44e2baf2 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