Makefile 1.35 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
include ../../Make.inc

EXE = pfof_snap

COMMONDIR = ../../common/src/
VPATH= $(COMMONDIR):.

SRC = modhdf5.f90 		\
	modconstant.f90 	\
	modmpicommons.f90 	\
11
12
	modindex.f90		\
	modvarcommons.f90	\
13
14
15
16
17
18
19
	modreadinfo.f90 	\
	modtiming.f90		\
	modreadmeta.f90		\
	modwritemeta.f90	\
	modsort.f90 		\
	compute_halo_properties_mod.f90 \
	modhaloopti.f90		\
20
	modhalo.f90 		\
21
22
23
24
25
26
27
	modwritehalo.f90	\
	modreadparameters.f90	\
	modfofmpi.f90 		\
	modvariables.f90	\
	modmpicom.f90		\
	modreadcube.f90 	\
	modwritecube.f90 	\
28
	read_ramses_part_mod.f90	\
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
	modio.f90		\
	modfofpara.f90		\
	pfof_snap.f90

OBJS = $(SRC:%.f90=%.o)


%.o:%.f90
	@echo "--------------------------------"
	@echo building $*.o with parameters \
	FC=$(MPIFC), FCFLAGS=$(FCFLAGS)
	$(MPIFC) -c $(FCFLAGS) $<

%.mod:%.f90
	@echo "--------------------------------"
	@echo building $*.mod with parameters \
	FC=$(MPIFC), FCFLAGS=$(FCFLAGS)
	$(MPIFC) -c $(FCFLAGS) $<

release: $(EXE)
all: release

51
$(EXE) : $(MODS) $(OBJS)
52
53
	@echo "--------------------------------"
	@echo building $(EXE) with parameters \
54
	FC=$(MPIFC), LDFLAGS=$(LDFLAGS)
55
56
57
58
	$(MPIFC) -g -o $(EXE) $(OBJS) $(LDFLAGS)

clean :
	@echo "--------------------------------"
59
60
	@echo cleaning compiled objects, modules and executable
	rm -f *.o *.mod *~ $(EXE)
61

62
svnrev:
63
	cd $(COMMONDIR) ; echo "#define SVNREV \"no_version_found\"" > svnrev.h ; cd - ;\
64
65
66


.PHONY: svnrev clean all