Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#SHELL=/bin/sh
OBJS= fly_h.o fly.o open_mpi_win.o close_mpi_win.o null.o error.o \
sys_init.o read_params.o read_redsh.o\
read_b_asc.o read_b_bin.o ini_bal.o init_pars.o init_ew.o \
init_pos.o reset_pos.o inpar_dyn.o step.o step_force.o \
tree_build.o tree_sort.o ch_all.o ch_dall.o \
tree_gen.o find_group.o \
cell_prop.o acc_comp.o \
ilist_group.o force_group.o force.o ilist.o upd_pos.o upd_vel.o \
wr_native.o write_b_asc.o write_b_bin.o out_32.o leapf_corr.o \
io.o ch_linee.o dt_comp.o \
flashBlockToFlyCell.o findParticlesInCell.o
# Tunable parameters
#
# CF Name of the fortran compiling system to use
# LDFLAGS Flags to the loader
# LIBS List of libraries
# CMD Name of the executable
# PROFLIB Library needed for profiling
#
CF = ifort
CC = gcc
LIBS =-L/usr/local/lib -lmpich -L.
CMD = ../bin_16ml/FLY_mpi
FFLAGS = -quiet -O0 -r8 -w95 -Vaxlib -I/usr/local/include
CFLAGS =
LD = $(CF)
# Lines from here on down should not need to be changed. They are the
# actual rules which make uses to build a.out.
#
all: $(CMD)
.SUFFIXES :
.SUFFIXES : .o .F90 .c
$(OBJS): fly_h.F90
.F90.o :
$(CF) $(FFLAGS) -c $<
.c.o :
$(CC) $(CFLAGS) -c $<
$(CMD): $(OBJS)
$(LD) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS)
# Make the profiled version of the command and call it a.out.prof
#
$(CMD).prof: $(OBJS)
$(CF) $(LDFLAGS) -o $(@) $(OBJS) $(PROFLIB) $(LIBS)
clean:
-rm -f $(OBJS)
clobber: clean
-rm -f $(CMD) $(CMD).prof
void: clobber
-rm -f $(SRCS) makefile