######################################################################
#
#  Name .......................................... interfaces 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

#
# Variables
#

CPPOBJ= bigint.o 

OBJ=$(CPPOBJ) 

#
# Rules
#

.c.o:
	$(CPP) -c $(CPPFLAGS) -I$(LIDIA_INC) $<

all:	copyh $(libp)LiDIA.a

appl:	bigint_appl$(EXE)

#
# Dependencies
# 

copyh:
	-$(CP) bigint.h ..$(DIRSEP)..$(DIRSEP)..$(DIRSEP)include$(DIRSEP)LiDIA

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

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

bigint_appl$(EXE):	bigint_appl.c
	$(CPP) $(CPPFLAGS) bigint_appl.c $(CPP-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)
