From: Ben Gras Date: Mon, 29 Aug 2005 19:39:06 +0000 (+0000) Subject: Splitting commands and big commands X-Git-Tag: v3.1.0~249 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=562671cf7853313989ba7d1a9fee6b24fa830c5b;p=minix.git Splitting commands and big commands --- diff --git a/commands/Makefile b/commands/Makefile index cc1097866..eb6917ada 100755 --- a/commands/Makefile +++ b/commands/Makefile @@ -4,22 +4,37 @@ MAKE = exec make -$(MAKEFLAGS) FLEX=flex-2.5.4 GZIP=gzip-1.2.4 PYTHON=python-1.5.2 +BZIP2=bzip2-1.0.3 +KERMIT=kermit-2.1.1 usage: - @echo "Usage: make all # Compile all commands" >&2 - @echo " make install # Install the result (run as bin!)" >&2 - @echo " make clean # Delete .o files and other junk" >&2 + @echo "Usage: make all # Compile all commands" >&2 + @echo " make install # Install the result (run as bin!)" >&2 + @echo " make clean # Delete .o files and other junk" >&2 + @echo " make bigall # Compile all big commands" >&2 + @echo " make biginstall # Install all big commands" >&2 @false -all install:: - cd $(FLEX) && /bin/sh ./configure --prefix=/usr && make $@ - cd $(GZIP) && /bin/sh ./configure --prefix=/usr && make $@ - cd $(PYTHON) && /bin/sh ./configure --prefix=/usr/local && make $@ +bigall: + cd $(FLEX) && /bin/sh ./configure --prefix=/usr/local && make all + cd $(GZIP) && /bin/sh ./configure --prefix=/usr/local && make all + cd $(PYTHON) && /bin/sh ./configure --prefix=/usr/local && make all + cd $(BZIP2) && $(MAKE) all + cd $(KERMIT) && $(MAKE) all + +biginstall: + cd $(FLEX) && /bin/sh ./configure --prefix=/usr/local && make install + cd $(GZIP) && /bin/sh ./configure --prefix=/usr/local && make install + cd $(PYTHON) && /bin/sh ./configure --prefix=/usr/local && make install + cd $(BZIP2) && $(MAKE) install + cd $(KERMIT) && $(MAKE) install clean:: if [ -f $(FLEX)/Makefile ] ; then cd $(FLEX) && make $@; fi if [ -f $(GZIP)/Makefile ] ; then cd $(GZIP) && make $@; fi if [ -f $(PYTHON)/Makefile ] ; then cd $(PYTHON) && make $@; fi + cd $(BZIP2) && $(MAKE) clean + cd $(KERMIT) && $(MAKE) clean all install clean:: cd `arch` && $(MAKE) $@ @@ -30,7 +45,6 @@ all install clean:: cd awk && $(MAKE) $@ cd bc && $(MAKE) $@ cd byacc && $(MAKE) $@ - cd bzip2-1.0.3 && $(MAKE) $@ cd cawf && $(MAKE) $@ cd cron && $(MAKE) $@ cd de && $(MAKE) $@ diff --git a/commands/ash/Makefile b/commands/ash/Makefile index e871ad4d6..5adbba617 100755 --- a/commands/ash/Makefile +++ b/commands/ash/Makefile @@ -29,7 +29,7 @@ all: sh sh: $(OBJS) $(CC) $(CFLAGS) -o sh $(OBJS) $(LIBS) - install -S 256kw sh + install -S 100k sh install: /usr/bin/ash /usr/bin/sh /bin/sh diff --git a/commands/make/Makefile b/commands/make/Makefile index 1bcd5b14c..2ed91594b 100755 --- a/commands/make/Makefile +++ b/commands/make/Makefile @@ -8,7 +8,7 @@ all: make make : $(OBJ) $(CC) -i -o make $(OBJ) - install -S 2000k make + install -S 330k make install: /usr/bin/make diff --git a/commands/scripts/minixsize.sh b/commands/scripts/minixsize.sh index 8e2a611d1..1a2485251 100644 --- a/commands/scripts/minixsize.sh +++ b/commands/scripts/minixsize.sh @@ -1,5 +1 @@ #!/bin/sh -chmem =300k /bin/sh /usr/bin/make /usr/bin/tar /usr/bin/aal -cd /usr/lib || exit 1 -chmem =1M em_cemcom.ansi em_led -chmem =200k * i386/*