1SUBSYSNAME := phasta/phSolver/compressible 2MODULENAME := compressible 3BUILDV := 1.0 4ISEXECUTABLE := 1 5OUTNAME := phastaC.exe 6ifeq ($(ARCHOS), ) 7 ARCHOS := $(shell $(DEVROOT)/Util/buildUtil/getarch) 8endif 9 10ifeq ($(ARCHOS),x86_cygwin) 11 DEVROOT := $(shell cygpath -w -m $(DEVROOT)) 12 IOLIB_DIR := $(DEVROOT)/phasta/phastaIO/lib/$(ARCHOS) 13 SHPLIB_DIR := $(DEVROOT)/phasta/shapeFunction/lib/$(ARCHOS) 14 METIS_DIR := $(DEVROOT)/phasta/phMetis/lib/$(ARCHOS) 15 WINIOLIB_DIR := $(shell cygpath -w $(IOLIB_DIR) ) 16 WINSHPFN_DIR := $(shell cygpath -w $(SHPLIB_DIR) ) 17 WINMETIS_DIR := $(shell cygpath -w $(METIS_DIR) ) 18 INCLUDES := -I "C:\Program Files\MPICH\SDK\include" 19 ADDSTDLIB := -LIBPATH:../lib/x86_cygwin libcommon.lib \ 20 -LIBPATH:"C:\Program Files\MPICH\SDK\Lib" mpich.lib \ 21 -LIBPATH:"$(WINIOLIB_DIR)" libphastaIO.lib \ 22 -LIBPATH:"$(WINSHPFN_DIR)" libshapeFunction.lib\ 23 -LIBPATH:"$(WINMETIS_DIR)" libmetis.lib\ 24 Advapi32.lib Ws2_32.lib /subsystem:console /release 25else 26 27 PRECOMPILE := copymods 28 ifeq ($(ARCHOS),x86_linux) 29## DEFS := $(DEFS) -Dsun4_5 30 FFLAGS := -ffixed-form -ffixed-line-length-132 31 LDFLAGS := $(LDFLAGS) -lgfortran -lgfortranbegin -lc -lm 32 endif 33 ifeq ($(ARCHOS),sun4_5) 34 DEFS := $(DEFS) -Dsun4_5 35 LDFLAGS := $(LDFLAGS) -lfsu -lfai2 -lfsumai -lfminlai -lfminvai \ 36 -lfmaxvai -lfmaxlai -lF77 -lsunmath -lthread \ 37 -lsocket -lnsl -lrt -lnsl -laio -lsunperf -lmvec 38 endif 39 ifeq ($(ARCHOS),sgi_6-64) 40 DEFS := $(DEFS) -Dsgi_6 -Dsgi 41 LDFLAGS := $(LDFLAGS) -lc -lfortran -lftn -lffio -lfpe -lffio -lfpe -lm 42 endif 43 ifeq ($(ARCHOS),ia64_linux) 44 DEFS := $(DEFS) -Dsun4_5 45 endif 46 ifeq ($(ARCHOS),x86_linux-icc) 47 DEFS := $(DEFS) -DLINUX 48 CFLAGS := $(CFLAGS) -w 49 FFLAGS := $(FFLAGS) -w95 -W0 -cm -80 50 LDFLAGS := $(LDFLAGS) -lifcore -ldl -lm -lpthread 51 endif 52 ifeq ($(ARCHOS),x86_64_linux-icc) 53 DEFS := $(DEFS) -DLINUX 54 CFLAGS := $(CFLAGS) -w 55 FFLAGS := $(FFLAGS) -w95 -W0 -cm -80 56 LDFLAGS := $(LDFLAGS) -lifcore -ldl -lm -lpthread 57 endif 58 ifeq ($(ARCHOS),x86_64_linux-pgi) 59 DEFS := $(DEFS) -DLINUX 60 FFLAGS := $(FFLAGS) -Mextend 61 LDFLAGS := $(LDFLAGS) -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpgftnrtl -lrt 62# LDFLAGS := $(LDFLAGS) -pgf90libs 63 endif 64 ifeq ($(ARCHOS),alpha_osf) 65 DEFS := $(DEFS) -Ddecalp 66 FFLAGS := $(FFLAGS) -convert big_endian -arch host -tune host -unroll 4\ 67 -fast -shared -w 68 CCFLAGS := $(CCFLAGS) -convert big_endian -arch host -tune host -call_shared 69 LDFLAGS := $(LDFLAGS) -ldxml -lsciport -lc -lfor -lFutil -lm -lots -lUfor 70 endif 71 ifeq ($(ARCHOS),ibm-bg) 72 FFLAGS := $(FFLAGS) -qnullterm -qfixed=132 73 DEFS := $(DEFS) -Dibm 74 LDFLAGS := $(LDFLAGS) -L/opt/ibmcmp/xlf/bg/10.1/blrts_lib -lxlf90 -lxlfmath 75 endif 76 77endif 78 79mods := mod_timedata.f stats.f BCprofile.f mod_BCsfIDmap.f 80 81dirs := . 82DEPS := $(DEPS) phasta/phSolver/$(VERSION)/phSolver phasta/phastaIO phasta/phMetis\ 83 phasta/shapeFunction 84LIBS := common phastaIO metis shapeFunction 85ADDLIB = $(ADDSTDLIB) 86INCLUDES := $(INCLUDES) -I../common 87 88# need to include common for intel fortran .mod files 89include $(DEVROOT)/Util/buildUtil/make.common 90 91.PHONY: copymods 92.PHONY: $(OUTFILE) 93 94copymods: 95 cp ../common/*.mod . 96