2005-04-21 16:53:53 +02:00
|
|
|
# Makefile for commands.
|
|
|
|
|
|
|
|
MAKE = exec make -$(MAKEFLAGS)
|
2005-08-29 21:39:06 +02:00
|
|
|
BZIP2=bzip2-1.0.3
|
2006-06-19 16:58:20 +02:00
|
|
|
FLEX=flex-2.5.4
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2007-04-20 14:06:14 +02:00
|
|
|
SMALLPROGRAMS=`arch` aal advent ash autil awk byacc cawf cron de dhcpd dis88 elle elvis ftp101 ftpd200 ibm indent m4 make mdb mined patch pax profile ps reboot rlogind scripts sh simple syslogd talk talkd telnet telnetd urlget yap zoneinfo
|
2005-09-20 15:04:52 +02:00
|
|
|
|
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 " "
|
|
|
|
@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
|
|
|
|
2006-06-19 16:58:20 +02:00
|
|
|
all: big small
|
2005-09-20 15:04:52 +02:00
|
|
|
|
2006-06-19 16:58:20 +02:00
|
|
|
install: big biginstall small smallinstall
|
2005-09-20 15:04:52 +02:00
|
|
|
|
|
|
|
big:
|
2006-06-19 16:58:20 +02:00
|
|
|
binsizes big
|
2006-07-17 19:05:54 +02:00
|
|
|
cd zmodem && make
|
2006-01-27 15:38:23 +01:00
|
|
|
cd $(BZIP2) && /bin/sh build build
|
2006-06-19 16:58:20 +02:00
|
|
|
binsizes normal
|
2005-08-29 21:39:06 +02:00
|
|
|
|
2005-09-20 15:04:52 +02:00
|
|
|
biginstall: big
|
2006-07-27 18:05:17 +02:00
|
|
|
binsizes big
|
2006-07-17 19:05:54 +02:00
|
|
|
cd zmodem && make install
|
2005-09-08 13:59:52 +02:00
|
|
|
cd $(BZIP2) && make install
|
2006-07-24 15:27:17 +02:00
|
|
|
cd $(FLEX) && sh build
|
2006-07-27 18:05:17 +02:00
|
|
|
binsizes normal
|
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
|
|
|
cd $(BZIP2) && make clean
|
2006-10-06 17:44:41 +02:00
|
|
|
cd zmodem && make clean
|
2006-10-24 16:20:59 +02:00
|
|
|
if [ -f $(FLEX)/Makefile ]; then cd $(FLEX) && make distclean ; fi
|
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::
|
2006-01-27 15:14:51 +01:00
|
|
|
set -e; 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::
|
2006-01-27 15:14:51 +01:00
|
|
|
set -e; for p in $(SMALLPROGRAMS); do ( cd $$p && make install ); done
|
2005-09-16 17:28:29 +02:00
|
|
|
|