# ----------------------------------------------------------------------------
# - Makefile                                                                 -
# - aleph src makefile                                                       -
# ----------------------------------------------------------------------------
# - This program is  free software;  you can  redistribute it and/or  modify -
# - it provided that this copyright notice is kept intact.                   -
# -                                                                          -
# - This  program  is  distributed in the hope  that it  will be useful, but -
# - without  any   warranty;  without  even   the   implied    warranty   of -
# - merchantability  or fitness for a particular purpose. In not event shall -
# - the copyright holder be  liable for  any direct, indirect, incidental or -
# - special damages arising in any way out of the use of this software.      -
# ----------------------------------------------------------------------------
# - copyright (c) 1999-2000 amaury darsch                                    -
# ----------------------------------------------------------------------------

TOPDIR		= ..
CNFDIR          = $(TOPDIR)/cnf
SITEFILE        = $(CNFDIR)/site.mak
RULEFILE        = $(CNFDIR)/rule.mak
include           $(SITEFILE)

# rule: all
# this rule is the default rule which call the build rule

all: build
.PHONY: all

# include: rule.mak
# this rule includes the platform dependant rules

include $(RULEFILE)

# rule: build
# this rule build all source directories

build:
	@${MAKE} -C system  all
	@${MAKE} -C stdobj  all
	@${MAKE} -C engine  all
	@${MAKE} -C library all
	@${MAKE} -C client  all
.PHONY: build

# rule: install
# install all src directories

install:
	@${MAKE} -C system  install
	@${MAKE} -C stdobj  install
	@${MAKE} -C engine  install
	@${MAKE} -C library install
	@${MAKE} -C client  install
.PHONY: install

# rule: clean
# this rule clean all source directories

clean::
	@${MAKE} -C system  clean
	@${MAKE} -C stdobj  clean
	@${MAKE} -C engine  clean
	@${MAKE} -C library clean
	@${MAKE} -C client  clean
.PHONY: clean
