summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-09 16:40:35 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-09 16:40:35 +0000
commite6f7f47c0bb4c3e4752288c4eeb6d492e7412009 (patch)
tree50458b5fb7bfd654917feb142cfd36920d1464b5 /libc
parent64cdebe1deb9abffdab61db3b829bcd1201d11df (diff)
By default, leave out the RPC junk (it adds over 30k). Add in a compile
time option to include it if NFS support is wanted (does anyone every use this for anything else these days?) -Erik
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/libc/inet/Makefile b/libc/inet/Makefile
index 47e663f7c..a22dc4cc7 100644
--- a/libc/inet/Makefile
+++ b/libc/inet/Makefile
@@ -24,7 +24,12 @@ TOPDIR=../
include $(TOPDIR)Rules.mak
LIBC=$(TOPDIR)libc.a
-DIRS = rpc
+ifeq ($(strip $(INCLUDE_RPC)),true)
+ DIRS=rpc
+else
+ DIRS=
+endif
+ALL_SUBDIRS = $(shell find * -type d -prune -name [a-z]\*)
MSRC=addr.c
MOBJ=inet_aton.o inet_addr.o inet_ntoa.o
@@ -78,12 +83,12 @@ clean: subdirs_clean
rm -f *.[oa] *~ core
subdirs: $(patsubst %, _dir_%, $(DIRS))
-subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS))
+subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
$(patsubst %, _dir_%, $(DIRS)) : dummy
$(MAKE) -C $(patsubst _dir_%, %, $@)
-$(patsubst %, _dirclean_%, $(DIRS)) : dummy
+$(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
$(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
.PHONY: dummy