# --------------------------------------------------------------------------
# Copyright 1994 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.
# --------------------------------------------------------------------------
include ../tut_common.mk

srcdir_rel =.
srcdir_abs =$(TUTPATH)/External
EXTERNAL = $(srcdir_abs)

include $(EXTERNAL)/External_defs.mk

#-----------------------------------------------

OPT_CCFLAG   =#$(CC_DO_OPT)
PROF_CCFLAG  =#$(CC_DO_PROF)
DEBUG_CCFLAG =$(CC_DO_DEBUG)

#----------------------------------------------

all	: External

depend	:
	mkdefs -rootmacro EXTERNAL -libmacro EXTERNAL . \
		> $(srcdir)/External_defs.mk

clean	: 
	rm -f External *.o

realclean : clean
	rm -f *_obst.[Cch] *_use.h *_scp.C
	touch *.obst

#------------------------------------------------


EX_OBJS = $(External_obst.o) $(External.o) $(External_main.o)
EX_LIBS = $(libOBST)
EX_LIBS_dep = $(OBSTLIB)/lib*

$(EXTERNAL)/External_obst.h $(EXTERNAL)/External_use.h \
$(EXTERNAL)/External_obst.C : $(EXTERNAL)/External.obst
	$(OBST.CMP) External

$(External_obst.o) : $(External_obst.C)
	$(OBST.GEN.CC) External_obst.C 

$(External.o) : $(External.C)
	$(OBST.CC) External.C 

$(External_main.o) : $(External_main.C)
	$(COMP.CC) External_main.C

External : $(EX_OBJS) $(EX_LIBS_dep)
	$(LINK.CC) $(EX_OBJS) $(EX_LIBS) $(LDFLAGS)

