1SUBSYSNAME := phasta/phSolver/common 2MODULENAME := common 3NVERS := 1.0 4BUILDV := 1.0 5NOSHARED = 1 6ifeq ($(ARCHOS), ) 7 ARCHOS := $(shell $(DEVROOT)/Util/buildUtil/getarch ) 8endif 9 10ifeq ($(ARCHOS),x86_cygwin) 11 DEVROOT := $(shell cygpath -w -m $(DEVROOT)) 12 INCLUDES := $(INCLUDES) -I "C:\Program Files\MPICH\SDK\include" 13 DEFS := $(DEFS) -Dintel 14endif 15ifeq ($(ARCHOS),sun4_5) 16 DEFS := $(DEFS) -Dsun4_5 17endif 18ifeq ($(ARCHOS),sgi_6-64) 19 DEFS := $(DEFS) -Dsgi_6 -Dsgi 20endif 21ifeq ($(ARCHOS),ia64_linux) 22 DEFS := $(DEFS) -Dsun4_5 23endif 24ifeq ($(ARCHOS),x86_linux) 25 DEFS := $(DEFS) -DLINUX 26 FFLAGS := -ffixed-form -ffixed-line-length-132 27endif 28ifeq ($(ARCHOS),x86_linux-icc) 29 DEFS := $(DEFS) -DLINUX 30 FFLAGS := $(FFLAGS) -w95 -W0 -cm -80 31endif 32ifeq ($(ARCHOS),x86_linux-icc-amd32) 33 DEFS := $(DEFS) -DLINUX 34 FFLAGS := $(FFLAGS) -w95 -W0 -cm -80 35endif 36ifeq ($(ARCHOS),x86_64_linux-icc) 37 DEFS := $(DEFS) -DLINUX 38 FFLAGS := $(FFLAGS) -w95 -W0 -cm -80 39endif 40ifeq ($(ARCHOS),x86_64_linux-pgi) 41 DEFS := $(DEFS) -DLINUX 42 FFLAGS := $(FFLAGS) -Mextend 43endif 44ifeq ($(ARCHOS),alpha_osf) 45 FFLAGS := $(FFLAGS) -convert big_endian -arch host -tune host -unroll 4 -fast -shared -w 46 CCFLAGS := $(CCFLAGS) -convert big_endian -arch host -tune host -call_shared 47 LDFLAGS := $(LDFLAGS) -ldxml -lsciport -lc -lfor -lFutil -lm -lots -lUfor 48endif 49ifeq ($(ARCHOS),ibm-bg) 50 FFLAGS := $(FFLAGS) -qnullterm -qfixed=132 51 DEFS := $(DEFS) -Dibm 52endif 53ifeq ($(ARCHOS),ibm-bgp) 54 FFLAGS := $(FFLAGS) -qnullterm -qfixed=132 55 DEFS := $(DEFS) -Dibm 56endif 57ifeq ($(VERS),) 58 DEFS := $(DEFS) -DLAUNCH_GDB 59endif 60 61ifeq ($(AMG),1) 62 DEFS := $(DEFS) -DAMG 63endif 64 65dirs := . 66DEPS := $(DEPS) phasta/phastaIO 67mods := spebc.f pointer.f \ 68 turbsa.f \ 69 perprep.f local_mass.f \ 70 filtprep.f pvsqbi.f \ 71 dtn.f bardmc.f \ 72 turbke.f\ 73 bctint.f readnblk.f\ 74 mod_slpw.f 75 76# Include standard makefile 77include $(DEVROOT)/Util/buildUtil/make.common 78