Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108526020
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Apr 17, 06:13
Size
1 KB
Mime Type
text/x-makefile
Expires
Sat, Apr 19, 06:13 (2 d)
Engine
blob
Format
Raw Data
Handle
25618709
Attached To
rFENNECS FENNECS: Finite Element Non-Neutral Electron Cloud Simulator
Makefile
View Options
.DEFAULT_GOAL := all
ifeq ($(PLATFORM),)
$(error Please specify the env variable PLATFORM (mac, intel))
else
$(info *** Using $(PLATFORM).mk ***)
include $(PLATFORM).mk
endif
include .depend
PROG = espic2d
SRCS = main.f90 basic_mod.f90 newrun.f90 restart.f90 \
auxval.f90 inital.f90 resume.f90 start.f90 diagnose.f90 \
stepon.f90 tesend.f90 endrun.f90 chkrst.f90 mv2bk.f90 \
constants.f90 xg_mod.f90 fields_mod.f90 beam_mod.f90 \
mpihelper_mod.f90
SRCS_C = extra.c
F90FLAGS += -I$(BSPLINES)/include -I$(FUTILS)/include \
-I$(MUMPS)/include
LDFLAGS += -L$(BSPLINES)/lib -L$(FUTILS)/lib -L${HDF5}/lib -L${HDF5}/lib \
-L$(MUMPS)/lib -L$(PARMETIS)/lib -L/usr/local/xgrafix_1.2/src-double
LIBS += -lbsplines -lpppack -lfutils -lhdf5_fortran -lhdf5 -lz $(MUMPSLIBS) -lpputils2 \
-lXGF -lXGC -lX11
OBJS = ${SRCS:.f90=.o} ${SRCS_F90:.F90=.o} ${SRCS_C:.c=.o}
all: $(PROG)
$(PROG): $(OBJS)
$(F90) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
tags:
etags *.f90
clean:
rm -f $(OBJS) *.mod
distclean: clean
rm -f $(PROG) *~ a.out *.o TAGS
debug: F90FLAGS = $(DEBUGFLAGS) -I$(BSPLINES)/include -I$(FUTILS)/include \
-I$(MUMPS)/include
debug: all
profile: F90FLAGS+=$(PROFILEFLAGS)
profile: LDFLAGS+= $(PROFILEFLAGS)
profile: all
.SUFFIXES: $(SUFFIXES) .f90 .c
.f90.o:
$(F90) $(F90FLAGS) -c $<
.c.o:
$(CC) $(CCFLAGS) -c $<
depend .depend:
makedepf90 *.[fF]90 > .depend
Event Timeline
Log In to Comment