######################################################################
#
#  Name .......................... LiDIA/src/templates/hash_table/makefile
#
#  Architecture : sparc7, sparc8, os2, ...
#  Compiler     : gcc, g++ 
#  Flags        : -g -O2
#  Program Flags: -DDEBUG, -DMEMORY, -DERRIGN 
#  Author       : Thomas Papanikolaou, Patrick Theobald
#  Release      : 1.0 
#  Last Change  : Fri Mar 12 12:27:00 MET DST 1996 
#  Copyright    : by the University of Saarland, 1994
#
 
#
# include the configuration file
#
  
include ../../../config/CONFIG
   
#
# include the instantiation file
#

include makefile.inst

#
# Rules
#

c++:	$(CXXOBJ) 
	-$(AR) $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a Lih*.o

g++:	$(CXXOBJ) 
	-$(AR) $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a Lih*.o

CC:

ranlib:
	$(RANLIB) $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a

appl:	hash_table_appl_int$(EXE)  indexed_hash_table_appl_int$(EXE)

#
# application files
#

APPL_HT=	$(CXX) $(CXXFLAGS) hash_table_appl.c $(CXX-off)-I$(LIDIA_INC)
APPL_IHT=	$(CXX) $(CXXFLAGS) indexed_hash_table_appl.c $(CXX-off)-I$(LIDIA_INC)

hash_table_appl_int$(EXE):	hash_table_appl.c
	$(APPL_HT) -Delem_type=int -o hash_table_appl_int$(EXE) -L$(LIDIA_LIB) $(LIB)
	-$(MV) hash_table_appl_int$(EXE) $(LIDIA_BIN)

indexed_hash_table_appl_int$(EXE):	indexed_hash_table_appl.c
	$(APPL_IHT) -Delem_type=int -o indexed_hash_table_appl_int$(EXE) -L$(LIDIA_LIB) $(LIB)
	-$(MV) indexed_hash_table_appl_int$(EXE) $(LIDIA_BIN)


#
# Clean
#

clean:
	-$(RM) *.o
	-$(RMR) ptrepository


veryclean:	clean 
	-$(RM) hash_table_appl_int$(EXE)
	-$(RM) indexed_hash_table_appl_int$(EXE)

#
# end of makefile
#
