SHELL = /bin/sh
.SUFFIXES: .cpp .o
CFLAGS = -g -lm
ALL_CFLAGS = -I. $(CFLAGS)

# Common prefix for installation directories.
# NOTE: This directory must exist when you start the install.
prefix = /usr/local
datarootdir = $(prefix)/share
datadir = $(datarootdir)
exec_prefix = $(prefix)
# Where to put the executable for the command `gcc'.
bindir = $(exec_prefix)/bin
# Where to put the directories used by the compiler.
libexecdir = $(exec_prefix)/libexec
# Where to put the Info files.
infodir = $(datarootdir)/info


.cpp.o:
	$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<

all: franois_vite johann_heinrich_lambert leonhard_euler gottfried_wilhelm_leibniz john_wallis \
     srinivasa_aiyangar_ramanujan bbp main


clean:
	rm -rf franois_vite johann_heinrich_lambert leonhard_euler gottfried_wilhelm_leibniz \
	john_wallis srinivasa_aiyangar_ramanujan bbp main
#	rm -rf *.o
