1 # Makefile for commands.
3 MAKE
= exec make
-$(MAKEFLAGS
)
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
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
18 @echo
"big compiles the commands the require large compiler sizes."
19 @echo
"small compiles the rest. all compiles all."
23 install: big biginstall small smallinstall
28 cd
$(BZIP2
) && /bin
/sh build build
33 cd zmodem
&& make
install
34 cd
$(BZIP2
) && make
install
35 cd
$(FLEX
) && sh build
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
46 set
-e
; for p in
$(SMALLPROGRAMS
); do
( cd
$$p && make
all ); done
49 set
-e
; for p in
$(SMALLPROGRAMS
); do
( cd
$$p && make
install ); done