# --------------------------------------------------------------------------
# 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", Haid-und-Neu-Str. 10-14,
# D-76131 Karlsruhe, Germany.
# --------------------------------------------------------------------------
.SBLOBFIXES:
default: all

OBST=/fzi/prost/stone/OBST3-3.5

CPP_NO_ERR   =#-DERR_NO_ASSERT  # disables OBST assertion checking if defined
CPP_NO_TRC   =-DNO_TT           # disables OBST tracing if defined

DEBUG_ccFLAG =#$(cc_DO_DEBUG)   # enables C debug info generation if defined
PROF_ccFLAG  =#$(cc_DO_PROF)    # enables C profiling if defined
OPT_ccFLAG   =$(cc_DO_OPT)      # enables C optimization if defined
DEBUG_CCFLAG =#$(CC_DO_DEBUG)   # enables C++ debug info generation if defined
PROF_CCFLAG  =#$(CC_DO_PROF)    # enables C++ profiling if defined
OPT_CCFLAG   =$(CC_DO_OPT)      # enables C++ optimization if defined

include $(OBST)/include/etc/obst_common.mk
include $(OBST)/include/etc/obst_defs.mk

BLOB=$(OBST)/blob
BLOBSRC=$(BLOB)/src
BLOBLIB=$(BLOB)/lib

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

all: $(BLOBLIB)/blob.o $(BLOBLIB)/blob_obst.o

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

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


$(BLOBSRC)/blob_obst.h $(BLOBSRC)/blob_use.h $(BLOBSRC)/blob_obst.C: \
	   $(BLOBSRC)/blob.obst
	$(OBST.CMP) blob

$(BLOBLIB)/blob_obst.o: $(BLOBSRC)/blob_obst.C $(BLOBSRC)/blob_obst.h
	$(OBST.GEN.CC) $(BLOBSRC)/blob_obst.C

$(BLOBLIB)/blob.o: $(BLOBSRC)/blob_obst.h $(BLOBSRC)/blob.C
	$(OBST.CC) $(BLOBSRC)/blob.C
