• - this is presently used for builds in Sophia under SunStudio :
    - insert the following line into SunStudio Makefile as pre-build code
    ( export F95FLAGS=-m64 && export BTREE="$$(pwd)" && cd Sources && make modules && mv -f *.mod $$BTREE )
    - insert .WAIT in the build prerequisites between .build-pre and .build-impl
    - create a file Make.inc in the root of the project containing at least F95=f95
    - the project must contain the directory "Sources" which is at the same time the working directory of svn

    git-svn-id: https://lxsd.femto-st.fr/svn/fvn@51 b657c933-2333-4658-acf2-d3c7c2708721

    cwaterkeyn
     
Makefile 586 Bytes
include $(BTREE)/Make.inc

objects = fvn_sparse.o umfpack_wrapper.o
modobjects = fvn_sparse.o

all: suitesparse $(objects)

suitesparse:
		( cd UMFPACK && make ) 

modules: $(modobjects)
	rm -f $(modobjects)

clean:
		( cd AMD && make clean )
		( cd UMFPACK && make clean )
		rm -f {*.o,*.oo,*.ipo,*.a,*.mod}

install:
		cp fvn_sparse.mod $(BTREE)/modules

umfpack_wrapper.o: umfpack_wrapper.c
		$(CC) $(CFLAGS) -c umfpack_wrapper.c -IUMFPACK/Include -IAMD/Include -IUFconfig -o umfpack_wrapper.o

fvn_sparse.o: fvn_sparse.f90
		$(F95) $(F95FLAGS) -c fvn_sparse.f90 -o fvn_sparse.o