# --------------------------------------------------------------------------
# Copyright 1992-1994 by Forschungszentrum Informatik (FZI)
# All rights reserved.
#
# You can use and distribute this software under the terms of the license
# you should have received along with this software; either version 1.1 of
# the license, or (at your option) any later version.
# For a copy of the license or for additional information about this software,
# write to Xcc Software, Durlacher Allee 53, D-76131 Karlsruhe, Germany;
# Email: obst@xcc-ka.de.
# --------------------------------------------------------------------------
include ../tut_common.mk

srcdir_rel =.
srcdir_abs =$(TUTPATH)/UnixFile

UNIXFILE = $(srcdir_abs)


include $(UNIXFILE)/UnixFile_defs.mk

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

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

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

all    : UnixFile 

depend : 
	mkdefs -rootmacro UNIXFILE -libmacro UNIXFILE . \
		> $(srcdir)/UnixFile_defs.mk

clean  :	
	rm -f UnixFile *.o

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

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

UNIXOBJS     =  $(UnixFile_obst.o) $(UnixFile.o) $(UnixFile_main.o)
UNIXLIBS     =$(libOBST)
UNIXLIBS_dep =$(OBSTLIB)/lib* 


$(UNIXFILE)/UnixFile_obst.h $(UNIXFILE)/UnixFile_use.h \
$(UNIXFILE)/UnixFile_obst.C : $(UNIXFILE)/UnixFile.obst
	$(OBST.CMP) UnixFile

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

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

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

UnixFile : $(UNIXOBJS) $(UNIXLIBS_dep) 
	$(LINK.CC) $(UNIXOBJS) $(UNIXLIBS) $(LDFLAGS)

