# --------------------------------------------------------------------------
# Copyright 1992 by Forschungszentrum Informatik (FZI)
#
# You can use and distribute this software under the terms of the license
# version 1 you should have received along with this software.
# If not or if you want additional information, write to
# Forschungszentrum Informatik, "OBST Projekt", Haid-und-Neu-Strasse 10-14,
# D-76131 Karlsruhe, Germany.
# --------------------------------------------------------------------------
default: all

include ../tut_common.mk


EXAMPLES=$(SAMPLE)

A=$(EXAMPLES)/Aggregates


# ~~~~~~~~~~~~~~~~~

all: USED_MODULES $(A)/Aggregates

clean:
	rm -f $(A)/*.o $(A)/Aggregates

realclean: clean
	   rm -f $(A)/*_obst.[Cch] $(A)/*_use.h $(A)/*_scp.C
	   touch $(A)/*.obst


# ~~~~~~~~~~~~~~~~~
# used modules
# ~~~~~~~~~~~~~~~~~
# Aggregates does not use other modules

USED_MODULES:


# ~~~~~~~~~~~~~~~~~~
# module: Aggregates
# ~~~~~~~~~~~~~~~~~~

A_OBJS = $(A_MODULES) $(A_MAIN)

A_MAIN = $(A)/Aggregates_main.o

A_MODULES = $(A)/Aggregates_obst.o

ALL_MODULES: USED_MODULES $(A_MODULES)


$(A)/Aggregates_obst.h $(A)/Aggregates_use.h $(A)/Aggregates_obst.C: \
	$(A)/Aggregates.obst
	$(OBST.CMP) Aggregates

$(A)/Aggregates_obst.o: $(A)/Aggregates_obst.C $(A)/Aggregates_obst.h
	$(OBST.GEN.CC) $(A)/Aggregates_obst.C

$(A)/Aggregates_main.o: $(A)/Aggregates_use.h $(A)/Aggregates_main.C
	$(COMP.CC) $(A)/Aggregates_main.C

$(A)/Aggregates: ALL_MODULES $(A_MAIN) $(OBSTLIB)/libOBST*
	$(LINK.CC) $(A_OBJS) $(libOBST) $(LDFLAGS)
