Use size-dependant no. of words, with OPEN_MAX as default for fd_set size.
[minix3.git] / commands / Makefile
bloba2a41a0dcf8f253f3a6915210121d6177ba0d5ba
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 bc byacc cawf cron de dhcpd dis88 elle elvis ftp101 ftpd200 ibm indent m4 make mdb mined patch pax ps reboot rlogind scripts sh simple syslogd talk talkd telnet telnetd urlget yap
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 $(FLEX) && make clean
41 cd zmodem && make clean
42 if [ -f $(FLEX)/Makefile ]; then cd $(FLEX) && make clean ; fi
43 for p in $(SMALLPROGRAMS); do ( cd $$p && make clean ); done
45 small::
46 set -e; for p in $(SMALLPROGRAMS); do ( cd $$p && make all ); done
48 smallinstall::
49 set -e; for p in $(SMALLPROGRAMS); do ( cd $$p && make install ); done