CPP = g++
CFLAGS = -O2 -Wall

.SUFFIXES: .cpp .o

.cpp.o:
	$(CPP) $(CFLAGS) -c $<

OBJECTS = lilib.o round.o Radius.o LongFloat.o LongInterval.o LongMatrix.o LongIntervalMatrix.o

LIB = libli.a

sample : sample.cpp $(LIB)
	$(CPP) $(CFLAGS) $< $(LIB)

$(LIB) : $(OBJECTS)
	ar rc $(LIB) $(OBJECTS)
	ranlib $(LIB)

clean:
	rm -f *~ $(OBJECTS) $(LIB) a.out
