#----------------------------------------------------------------------------
#
# Utilities makefile.
#
# $Ident: This file is part of the 'Gt-library' 1.0.0 $
# $Copyright: (C) 1997 by Gran Gustafsson $
#
#----------------------------------------------------------------------------

#----------------------------------------------------------------------------
# Include configuration
#----------------------------------------------------------------------------
include ../makefile.cfg


#----------------------------------------------------------------------------
# Binaries
#----------------------------------------------------------------------------

BIN1 = tagorg

BIN2 = l2ghd


#----------------------------------------------------------------------------
# Sources & Objects
#----------------------------------------------------------------------------

OBJ1 = tagorg.o tag.o io.o error.o dlink.o

SRC1 = tagorg.cc tag.cc io.cc error.cc dlink.cc

SRC2 = l2ghd.cc


#----------------------------------------------------------------------------
# Targets
#----------------------------------------------------------------------------

$(BIN1) : $(OBJ1)
	$(CEXE) $(BIN1) $(OBJ1)


$(BIN2) : $(SRC2)
	$(CEXE) $(BIN2) $(SRC2)

%.o : %.cc
	$(COBJ) $<

include .depend1

.depend1 : $(SRC1)
	$(MKDEP) $(SRC1) >.depend1


#----------------------------------------------------------------------------
# Specials
#----------------------------------------------------------------------------

clean :
	$(RM) $(OBJ1)

cleanx : clean
	$(RM) $(BIN1) $(BIN2)
