CC = gcc F77 = gfortran # Make sure the CC and F77 compilers were built with the same glibc library # g77 will work fine on most systems CFLAGS = -Wall OBJS = testdot.o testret.o testmat.o all: driver lib driver : driver.o $(OBJS) $(F77) -o driver driver.o $(OBJS) -lstdc++ testret.o : testret.cc $(CC) $(CFLAGS) -c testret.cc testdot.o : testdot.cc $(CC) $(CFLAGS) -c testdot.cc testmat.o : testmat.cc $(CC) $(CFLAGS) -c testmat.cc driver.o : driver.f $(F77) -c driver.f # Default Targets for Cleaning up the Environment clean : rm *.o rm *.a pristine : rm *.o rm *.a touch *.cc ctags : ctags *.cc # Target for making the library lib: $(OBJS) ar -rc libbblas.a $(OBJS) ranlib libbblas.a