# Optimization used for compiling programs.
O=-O2

# Uncomment the following, if compiling on an elf system.
# USE_NEW_ELF=yes


##################  End Of Configuration Part

flags = O="$(O)" USE_NEW_ELF="$(USE_NEW_ELF)"

SUBDIRS = tcp_wrappers_7.2 bootp-2.4.3 bootpc.v031 dip-3.3.7n icmpinfo-1.10 \
 netdate net-tools-1.2.0 nfs-server-2.2beta2 pidentd-2.6.1 tcp_wrappers_7.2 \
 traceroute-4.4BSD ytalk-3.0.2

all:
	for i in $(SUBDIRS); do (if [ -f $$i/Makefile.Linux ]; then \
		make -C $$i -f Makefile.Linux all ${flags}; else \
		make -C $$i all ${flags}; fi); done

install:
	for i in $(SUBDIRS); do (if [ -f $$i/Makefile.Linux ]; then \
		make -C $$i -f Makefile.Linux install ${flags}; else \
		make -C $$i install ${flags}; fi); done

clean:
	for i in $(SUBDIRS); do (if [ -f $$i/Makefile.Linux ]; then \
		make -C $$i -f Makefile.Linux clean ${flags}; else \
		make -C $$i clean ${flags}; fi); done

