• - 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 370 Bytes
include $(BTREE)/Make.inc

library = libfvn_common$(libext)

objects = fvn_common.o d1mach.o r1mach.o

modobjects = fvn_common.o

lib:$(objects)

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

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

clean:
		rm -f {*.o,*.oo,*.ipo,*.a,*.mod}

%.o: %.f90
		$(F95) $(F95FLAGS) -c $< -o $@

%.o: %.f
		$(F95) $(F95FLAGS) -c $< -o $@