summaryrefslogtreecommitdiffstats
path: root/usr.bin/Makefile
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-08-29 10:35:01 +0000
committerphk <phk@FreeBSD.org>2003-08-29 10:35:01 +0000
commit69a89b719e68377bea82c843e9aad95c36f778a9 (patch)
tree7678c8ce0f5bce166dfa1b851883288faa470652 /usr.bin/Makefile
parenta225ed0f0f058d020eb79ba55f3997e0ab1580a4 (diff)
downloadFreeBSD-src-69a89b719e68377bea82c843e9aad95c36f778a9.zip
FreeBSD-src-69a89b719e68377bea82c843e9aad95c36f778a9.tar.gz
Introduce more knobs to slim down FreeBSD userland
NO_TOOLCHAIN skips Compilers and Binutils NO_USB skips USB stuff NO_VINUM skips Vinum stuff NO_ACPI skips ACPI stuff
Diffstat (limited to 'usr.bin/Makefile')
-rw-r--r--usr.bin/Makefile23
1 files changed, 17 insertions, 6 deletions
diff --git a/usr.bin/Makefile b/usr.bin/Makefile
index 310c39f..ce9cc76 100644
--- a/usr.bin/Makefile
+++ b/usr.bin/Makefile
@@ -8,11 +8,19 @@
#
.if ${MACHINE_ARCH} != "ia64"
+.if !defined(NO_TOOLCHAIN)
_xlint= xlint
+_lex= lex
+_yacc= yacc
+_c88= c88
+_c98= c98
+.endif
.endif
.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "amd64"
+.if !defined(NO_TOOLCHAIN)
_gprof= gprof
+.endif
_truss= truss
.endif
@@ -27,8 +35,8 @@ SUBDIR= alias \
brandelf \
bzip2 \
bzip2recover \
- c89 \
- c99 \
+ ${_c89} \
+ ${_c99} \
calendar \
cap_mkdb \
catman \
@@ -96,7 +104,7 @@ SUBDIR= alias \
less \
lessecho \
lesskey \
- lex \
+ ${_lex} \
limits \
locale \
locate \
@@ -188,8 +196,6 @@ SUBDIR= alias \
uniq \
units \
unvis \
- usbhidaction \
- usbhidctl \
users \
uudecode \
uuencode \
@@ -212,7 +218,7 @@ SUBDIR= alias \
xinstall \
${_xlint} \
xstr \
- yacc \
+ ${_yacc} \
yes \
ypcat \
ypmatch \
@@ -229,6 +235,11 @@ SUBDIR+=dig \
SUBDIR+=vacation
.endif
+.if !defined(NO_USB)
+SUBDIR+=usbhidaction \
+ usbhidctl
+.endif
+
.if ${MACHINE_ARCH} == "i386"
# Things that don't compile on alpha or are aout specific:
SUBDIR+=doscmd \
OpenPOWER on IntegriCloud