######################################################################
#
#  Name ................... LiDIA/src/interfaces/integers/gmp/makefile
#
#  Architecture : sparc7, sparc8, mips. linux , os2
#  Compiler     : gcc, g++ 
#  Flags        : -g -O2
#  Program Flags: -DDEBUG, -DMEMORY, -DERRIGN 
#  Author       : Thomas Papanikolaou & 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

#
# Object
#

OBJ=bigint.o

#
# Rules
#

all:	copyh $(libp)LiDIA.a

appl:	bigint_appl$(EXE)

#
# Dependencies
# 

copyh:
	$(CP) bigint_def.h $(LIDIA_HOME)$(DIRSEP)include$(DIRSEP)LiDIA

bigint.o:	$(LIDIA_INC)$(DIRSEP)LiDIA$(DIRSEP)bigint.h

$(libp)LiDIA.a:         $(OBJ)
	-$(AR) $(LIDIA_LIB)$(DIRSEP)$(libp)LiDIA.a $(objp)*.o

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

bigint_appl$(EXE):	bigint_appl.c
	$(CXX) $(CXXFLAGS) bigint_appl.c $(CXX-off) -I$(LIDIA_INC) -L$(LIDIA_LIB) -o bigint_appl$(EXE) $(LIB)
	-$(MV) bigint_appl$(EXE) $(LIDIA_BIN)

#
# Clean
#

clean:
	-$(RM) *.o 

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

#
# End Of Makefile
#
