2005-04-21 16:53:53 +02:00
|
|
|
# Makefile for commands.
|
|
|
|
|
|
|
|
MAKE = exec make -$(MAKEFLAGS)
|
2005-07-11 14:54:10 +02:00
|
|
|
FLEX=flex-2.5.4
|
2005-06-20 15:30:24 +02:00
|
|
|
GZIP=gzip-1.2.4
|
2005-06-27 12:04:55 +02:00
|
|
|
PYTHON=python-1.5.2
|
2005-08-29 21:39:06 +02:00
|
|
|
BZIP2=bzip2-1.0.3
|
|
|
|
KERMIT=kermit-2.1.1
|
2005-09-16 17:28:29 +02:00
|
|
|
NVI=nvi-1.79
|
|
|
|
NVIWORK=$(NVI)/minix
|
|
|
|
EMACS=emacs-21.4
|
|
|
|
LYNX=lynx2-8-5
|
|
|
|
COREUTILS=gnu-coreutils-5.2.1
|
2005-10-12 11:57:09 +02:00
|
|
|
VIM=vim63
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-09-20 15:04:52 +02:00
|
|
|
SMALLPROGRAMS=`arch` aal advent ash autil awk bc byacc cawf cron de dhcpd dis88 elle elvis ftp ftpd ftpd200 httpd ibm indent m4 make mdb mined patch ps reboot rlogind scripts sh simple talk talkd telnet telnetd urlget yap zmodem
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
usage:
|
2005-09-20 15:04:52 +02:00
|
|
|
@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 big # Compile all big commands" >&2
|
|
|
|
@echo " make biginstall # Install all big commands" >&2
|
|
|
|
@echo " make small # Install all small commands" >&2
|
|
|
|
@echo " make smallinstall # Install all small commands" >&2
|
|
|
|
@echo " make ack # Make ack" >&2
|
|
|
|
@echo " make ackinstall # Install ack" >&2
|
|
|
|
@echo " "
|
|
|
|
@echo "big compiles the commands the require large compiler sizes."
|
|
|
|
@echo "small compiles the rest. all compiles all."
|
2005-04-21 16:53:53 +02:00
|
|
|
@false
|
|
|
|
|
2005-09-26 13:42:23 +02:00
|
|
|
all: small big
|
2005-09-20 15:04:52 +02:00
|
|
|
|
|
|
|
install: biginstall smallinstall
|
|
|
|
|
|
|
|
small::
|
2005-09-16 17:28:29 +02:00
|
|
|
-mkdir $(NVIWORK)
|
2005-09-20 15:04:52 +02:00
|
|
|
cd $(GZIP) && CC="$(CC)" /bin/sh ./configure --prefix=/usr/local && $(MAKE) all
|
|
|
|
cd $(NVI) && make all
|
2005-08-31 13:56:16 +02:00
|
|
|
|
2005-09-20 15:04:52 +02:00
|
|
|
smallinstall:: small
|
|
|
|
cd $(GZIP) && $(MAKE) install
|
|
|
|
cd $(NVI) && make install
|
|
|
|
|
|
|
|
big:
|
2005-09-08 13:59:52 +02:00
|
|
|
cd $(FLEX) && /bin/sh makeme.sh
|
|
|
|
cd $(BZIP2) && /bin/sh makeme.sh
|
|
|
|
cd $(KERMIT) && /bin/sh makeme.sh
|
2005-09-16 17:28:29 +02:00
|
|
|
cd $(LYNX) && /bin/sh makeme.sh
|
|
|
|
cd $(COREUTILS) && /bin/sh makeme.sh
|
2005-09-26 13:43:01 +02:00
|
|
|
cd $(EMACS) && /bin/sh makeme.sh
|
|
|
|
cd $(PYTHON) && /bin/sh makeme.sh
|
2005-10-12 11:57:09 +02:00
|
|
|
cd $(VIM) && /bin/sh makeme.sh
|
2005-08-29 21:39:06 +02:00
|
|
|
|
2005-09-20 15:04:52 +02:00
|
|
|
biginstall: big
|
2005-09-08 13:59:52 +02:00
|
|
|
cd $(FLEX) && make install
|
|
|
|
cd $(PYTHON) && make install
|
|
|
|
cd $(BZIP2) && make install
|
|
|
|
cd $(KERMIT) && make install
|
2005-09-16 17:28:29 +02:00
|
|
|
cd $(LYNX) && make install
|
|
|
|
cd $(EMACS) && make install
|
|
|
|
cd $(COREUTILS) && make install
|
2005-10-12 11:57:09 +02:00
|
|
|
cd $(VIM) && make install
|
2005-06-17 15:42:53 +02:00
|
|
|
|
2005-06-20 15:30:24 +02:00
|
|
|
clean::
|
2005-08-30 18:23:32 +02:00
|
|
|
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
|
2005-09-16 17:28:29 +02:00
|
|
|
if [ -f $(NVIWORK)/Makefile ]; then cd $(NVIWORK) && make clean; fi
|
|
|
|
if [ -f $(LYNX)/Makefile ] ; then cd $(LYNX) && make clean; fi
|
|
|
|
if [ -f $(EMACS)/Makefile ] ; then cd $(EMACS) && make clean; fi
|
|
|
|
cd $(COREUTILS) && make clean
|
2005-09-20 16:11:29 +02:00
|
|
|
for p in $(SMALLPROGRAMS); do ( cd $$p && make clean ); done
|
2005-09-20 15:04:52 +02:00
|
|
|
|
|
|
|
small::
|
|
|
|
for p in $(SMALLPROGRAMS); do ( cd $$p && make all ); done
|
2005-06-17 15:42:53 +02:00
|
|
|
|
2005-09-20 15:04:52 +02:00
|
|
|
smallinstall::
|
|
|
|
for p in $(SMALLPROGRAMS); do ( cd $$p && make install ); done
|
2005-09-16 17:28:29 +02:00
|
|
|
|
2005-09-19 15:21:02 +02:00
|
|
|
ack:
|
|
|
|
cd ackpack && make
|
|
|
|
|
2005-09-20 15:04:52 +02:00
|
|
|
ackinstall:
|
2005-09-19 15:21:02 +02:00
|
|
|
cd ackpack && make install
|
2005-09-20 15:04:52 +02:00
|
|
|
|