######################################################################
#
#  Name ............................................. lattice makefile 
#
#  Architecture : sparc7, sparc8, mips, linux, os2
#  Compiler     : gcc, g++ 
#  Flags        : -g -O2
#  Program Flags: -DDEBUG, -DMEMORY, -DERRIGN 
#  Author       : Papanikolaou Thomas & Stefan Neis
#  Release      : 1.0 
#  Last Change  : Mon Apr 11 16:09:08 MET DST 1994 
#  Copyright    : by the University of Saarland, 1994 
#

#
# include the configuration file
#

include ../../../config/CONFIG

#
#
#

CPPOBJ=bf_lattice.o bi_lattice.o do_lattice.o \
	lattice_gensys.o lattice_basis.o

OBJ=$(CPPOBJ) 

#
# Rules
#

.c.o:
	$(CPP) -c $(CPPFLAGS) -I$(LIDIA_INC)  $<
 
all:	$(libp)LiDIA.a

appl:	lattice_appl$(EXE)

#
# Dependencies
#

bf_lattice.o:		$(LIDIA_INC)$(DIRSEP)LiDIA$(DIRSEP)bigfloat_lattice.h
bi_lattice.o: 		$(LIDIA_INC)$(DIRSEP)LiDIA$(DIRSEP)bigint_lattice.h
do_lattice.o: 		$(LIDIA_INC)$(DIRSEP)LiDIA$(DIRSEP)double_lattice.h
lattice_gensys.o: 	$(LIDIA_INC)$(DIRSEP)LiDIA$(DIRSEP)lattice_gensys.h
lattice_basis.o:	$(LIDIA_INC)$(DIRSEP)LiDIA$(DIRSEP)lattice_basis.h	

$(libp)LiDIA.a:         $(OBJ) 
	$(AR) $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a $(OBJ)
	$(RANLIB) $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a

lattice_appl$(EXE):		$(OBJ) lattice_appl.c 
	$(CPP) $(CPPFLAGS) lattice_appl.c $(CPP-off) -I$(LIDIA_INC) -L$(LIDIA_LIB) -o lattice_appl$(EXE) $(LIB)
	-$(MV) lattice_appl$(EXE) $(LIDIA_BIN)

#
# Clean
#

clean:
	-$(RM) *.o 

veryclean:	clean 
	-$(RM) lattice_appl$(EXE) 

