- simplify findhole() for use for 1 page only
[minix.git] / commands / Makefile
blob3f51f484caf86bd4a06754b06c82e77c8d75faa4
1 # Makefile for commands.
3 MAKE = exec make -$(MAKEFLAGS)
4 BZIP2=bzip2-1.0.3
5 FLEX=flex-2.5.4
7 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
9 usage:
10 @echo "Usage: make all # Compile all commands" >&2
11 @echo " make install # Install the result (run as bin!)" >&2
12 @echo " make clean # Delete .o files and other junk" >&2
13 @echo " make big # Compile all big commands" >&2
14 @echo " make biginstall # Install all big commands" >&2
15 @echo " make small # Install all small commands" >&2
16 @echo " make smallinstall # Install all small commands" >&2
17 @echo " "
18 @echo "big compiles the commands the require large compiler sizes."
19 @echo "small compiles the rest. all compiles all."
21 all: big small
23 install: big biginstall small smallinstall
25 big:
26 binsizes big
27 cd zmodem && make
28 cd $(BZIP2) && /bin/sh build build
29 binsizes normal
31 biginstall: big
32 binsizes big
33 cd zmodem && make install
34 cd $(BZIP2) && make install
35 cd $(FLEX) && sh build
36 binsizes normal
38 clean::
39 cd $(BZIP2) && make clean
40 cd zmodem && make clean
41 if [ -f $(FLEX)/Makefile ]; then cd $(FLEX) && make distclean ; fi
42 for p in $(SMALLPROGRAMS); do ( cd $$p && make clean ); done
44 small::
45 set -e; for p in $(SMALLPROGRAMS); do ( cd $$p && make all ); done
47 smallinstall::
48 set -e; for p in $(SMALLPROGRAMS); do ( cd $$p && make install ); done