Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100574811
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
Fri, Jan 31, 20:59
Size
2 KB
Mime Type
text/x-makefile
Expires
Sun, Feb 2, 20:59 (2 d)
Engine
blob
Format
Raw Data
Handle
23910232
Attached To
rFENNECSLITE FENNECS lite
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 = fennecs
SRCS = main.f90 basic_mod.f90 \
auxval.f90 inital.f90 resume.f90 start.f90 diagnose.f90 \
stepon.f90 tesend.f90 endrun.f90 chkrst.f90 mv2bk.f90 \
constants.f90 fields_mod.f90 beam_mod.f90 \
mpihelper_mod.f90 distrib_mod.f90 \
maxwsrce_mod.f90 geometry_mod.f90 \
../dependencies/random/random_mod.f90 particletypes_mod.f90 \
splinebound_mod.f90 weighttypes_mod.f90 psupply_mod.f90 \
ion_induced_mod.f90 materials_mod.f90 secondary_electrons_mod.f90 \
../dependencies/incomplete_gamma/incomplete_gamma_mod.f90 \
magnet_mod.f90 ../dependencies/elliptic/elliptic_mod.f90 neutcol_mod.f90
SRCS_C = extra.c
SRCS_F =
MKDIR_P = mkdir -p
OUT_DIR = release
F90FLAGS += -I$(BSPLINES)/include -I$(FUTILS)/include \
-I$(MUMPS)/include -I../ -I../dependencies/**/
CCFLAGS += -O3
LDFLAGS += -L$(BSPLINES)/lib -L$(FUTILS)/lib -L${HDF5}/lib -L${HDF5}/lib \
-L$(MUMPS)/lib -L$(PARMETIS)/lib -L../dependencies/extlibs/
LIBS += -lbsplines -lpppack -lfutils -lhdf5_fortran -lhdf5 -lz $(MUMPSLIBS) -lpputils2
F90FLAGS+=-DUSE_X=0
OBJS =${SRCS_F:.f=.o} ${SRCS:.f90=.o} ${SRCS_F90:.F90=.o} ${SRCS_C:.c=.o}
FPP =${SRCS:.f90=.i90}
#OBJS_ =$(addprefix ./$(OUT_DIR)/,$(OBJS))
debug: F90FLAGS += $(DEBUGFLAGS)
debug: OUT_DIR=debug
debug: all
profile: F90FLAGS+=$(PROFILEFLAGS)
profile: LDFLAGS+= $(PROFILEFLAGS)
profile: OUT_DIR=profile
profile: all
$(info *** Using $(OBJS) ***)
.PHONY: directories clean debug profile
all: directories $(PROG)
$(PROG): $(OBJS)
$(F90) $(LDFLAGS) $(F90FLAGS) -o $@ $(OBJS) $(LIBS)
tags:
etags *.f90
clean:
rm -f $(OBJS) *.mod $(FPP) *_genmod*
distclean: clean
rm -f $(PROG) *~ a.out *.o TAGS
extra.o: extra.c
diagnose.o : diagnose.f90 fields_mod.o beam_mod.o basic_mod.o
directories: ${OUT_DIR}
${OUT_DIR}:
${MKDIR_P} ${OUT_DIR}
.SUFFIXES: $(SUFFIXES) .f .f90 .c
%.o: %.f
$(F90) $(F90FLAGS) -MD -c -o $@ $<
%.o: %.f90
$(F90) $(F90FLAGS) -MD -c -o $@ $<
%.o: %.c
$(CC) $(CCFLAGS) -c -o $@ $<
#%.o: %.f
# $(F90) $(F90FLAGS) -c -o $@ $<
#%.o: %.f90
# $(F90) $(F90FLAGS) -c -o $@ $<
depend .depend .depend_rel .depend_deb :
makedepf90 ../dependencies/**/*.[fF]90 *.[fF]90 *.c > .depend
Event Timeline
Log In to Comment