# Generated automatically from Makefile.in by configure.
#
# $Id: Makefile.in,v 1.4 1996/12/23 14:36:16 masaki Exp $
#


EXEC_PREFIX =../../obj/linux2.1.24
HOST_OS =linux2.1.24

include Make.include


all: library program

install \
install-mrtd: library
	@echo "Installing mrtd"; \
	test $(.CURDIR) && cd $(.CURDIR); cd programs/mrt; $(MAKE) install && \
	echo "Please prepare /etc/mrtd.conf"

#
# I don't know the smart way to stop freebsd's make changing dir to ./obj 
#                                                               -- masaki

library:
	@echo "Making lib"; \
		test $(.CURDIR) && cd $(.CURDIR); cd lib; $(MAKE) all

program:
	@echo "Making programs"; \
		test $(.CURDIR) && cd $(.CURDIR); cd programs; $(MAKE) all

clean:
	@echo "Cleaning up lib"; \
	test $(.CURDIR) && cd $(.CURDIR); cd lib; $(MAKE) $@
	@echo "Cleaning up programs"; \
	test $(.CURDIR) && cd $(.CURDIR); cd programs; $(MAKE) $@
	@echo "Cleaning up obj"; \
	test $(.CURDIR) && cd $(.CURDIR); \
		$(RM) obj/$(HOST_OS)/bin/* obj/$(HOST_OS)/lib/*
	@test $(.CURDIR) && cd $(.CURDIR); $(RM) config.cache

depend:
	@echo "Making dependency in lib"; \
	test $(.CURDIR) && cd $(.CURDIR); cd lib; $(MAKE) $@
	@echo "Making dependency in programs"; \
	test $(.CURDIR) && cd $(.CURDIR); cd programs; $(MAKE) $@

depend-clean:
	@echo "Removing dependency in lib"; \
	test $(.CURDIR) && cd $(.CURDIR); cd lib; $(MAKE) $@
	@echo "Removing dependency in programs"; \
	test $(.CURDIR) && cd $(.CURDIR); cd programs; $(MAKE) $@
