# # This file is part of MUMPS 4.9.2, built on Thu Nov 5 07:05:08 UTC 2009 # topdir = .. libdir = $(topdir)/lib default: d .PHONY: default all s d c z clean .SECONDEXPANSION: all: s d c z s: ssimpletest d: dsimpletest c_example c: csimpletest z: zsimpletest include $(topdir)/Makefile.inc LIBMUMPS_COMMON = $(libdir)/libmumps_common$(PLAT).lib LIBSMUMPS = $(libdir)/libsmumps$(PLAT).lib $(LIBMUMPS_COMMON) ssimpletest: $(LIBSMUMPS) $$@.o $(FL) -o $@ $(OPTL) ssimpletest.o $(LIBSMUMPS) $(LORDERINGS) $(LIBM) $(LIBBLAS) $(LIBOTHERS) LIBDMUMPS = $(libdir)/libdmumps$(PLAT).lib $(LIBMUMPS_COMMON) dsimpletest: $(LIBDMUMPS) $$@.o $(FL) -o $@ $(OPTL) dsimpletest.o $(LIBDMUMPS) $(LORDERINGS) $(LIBM) $(LIBBLAS) $(LIBOTHERS) LIBCMUMPS = $(libdir)/libcmumps$(PLAT).lib $(LIBMUMPS_COMMON) csimpletest: $(LIBCMUMPS) $$@.o $(FL) -o $@ $(OPTL) csimpletest.o $(LIBCMUMPS) $(LORDERINGS) $(LIBM) $(LIBBLAS) $(LIBOTHERS) LIBZMUMPS = $(libdir)/libzmumps$(PLAT).lib $(LIBMUMPS_COMMON) zsimpletest: $(LIBZMUMPS) $$@.o $(FL) -o $@ $(OPTL) zsimpletest.o $(LIBZMUMPS) $(LORDERINGS) $(LIBM) $(LIBBLAS) $(LIBOTHERS) c_example: $(LIBDMUMPS) $$@.o $(FL) -o $@ $(OPTL) $@.o $(LIBDMUMPS) $(LORDERINGS) $(LIBM) $(LIBBLAS) $(LIBOTHERS) .SUFFIXES: .c .F .o .F.o: $(FC) $(OPTF) $(INC) -I. -I$(topdir)/include -c $*.F -Fo$*.o .c.o: $(CC) $(OPTC) $(INC) -I. -I$(topdir)/include -c $*.c -Fo$*.o $(libdir)/libsmumps$(PLAT).lib: @echo 'Error: you should build the library' $@ 'first' exit -1 $(libdir)/libdmumps$(PLAT).lib: @echo 'Error: you should build the library' $@ 'first' exit -1 $(libdir)/libcmumps$(PLAT).lib: @echo 'Error: you should build the library' $@ 'first' exit -1 $(libdir)/libzmumps$(PLAT).lib: @echo 'Error: you should build the library' $@ 'first' exit -1 $(LIBMUMPS_COMMON): @echo 'Error: you should build the library' $@ 'first' exit -1 clean: $(RM) *.o [sdcz]simpletest c_example