40 lines
1.3 KiB
Makefile
Executable file
40 lines
1.3 KiB
Makefile
Executable file
# Makefile for commands.
|
|
|
|
MAKE = exec make -$(MAKEFLAGS)
|
|
BZIP2=bzip2-1.0.3
|
|
|
|
SMALLPROGRAMS=`arch` aal advent ash autil awk bc byacc cawf cron de dhcpd dis88 elle ftp ftpd ftpd200 httpd ibm indent m4 make mdb mined patch pax ps reboot rlogind scripts sh simple talk talkd telnet telnetd urlget yap zmodem
|
|
|
|
usage:
|
|
@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."
|
|
@false
|
|
|
|
all: small big
|
|
|
|
install: biginstall smallinstall
|
|
|
|
big:
|
|
cd $(BZIP2) && /bin/sh build build
|
|
|
|
biginstall: big
|
|
cd $(BZIP2) && make install
|
|
|
|
clean::
|
|
cd $(BZIP2) && make clean
|
|
for p in $(SMALLPROGRAMS); do ( cd $$p && make clean ); done
|
|
|
|
small::
|
|
set -e; for p in $(SMALLPROGRAMS); do ( cd $$p && make all ); done
|
|
|
|
smallinstall::
|
|
set -e; for p in $(SMALLPROGRAMS); do ( cd $$p && make install ); done
|
|
|