Subversion Repositories tropofold.echam

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 michaesp 1
### name of the executable that will be produced
2
PROG       = $(INSTALLDIR)/3d_labelling_and_fold_id.exe
3
 
4
DATE=$(shell date +"%Y%m%d")
5
 
6
# complete list of all f90 source files
7
SRCS  = mo_f2kcli.f90 netcdf_tools.f90 libipo.f 3d_labelling_and_fold_id.f90
8
 
9
# --------------------------------------------------------------------
10
OBJS = mo_f2kcli.o netcdf_tools.o libipo.o 3d_labelling_and_fold_id.o
11
 
12
all: $(PROG)
13
 
14
$(PROG): $(OBJS)
15
	$(F90) $(F90FLAGS) $(OBJS) $(LIBS) -o $@
16
 
17
list:
18
	@echo "------------------------------------------------"
19
	@echo "SRCS = $(SRCS)"
20
	@echo "------------------------------------------------"
21
	@echo
22
	@echo "------------------------------------------------"
23
	@echo "OBJS = $(OBJS)"
24
	@echo "------------------------------------------------"
25
 
26
zip:
27
	zip -r 3d_labelling_and_fold_id_$(DATE).zip *
28
clean:
29
	rm -f *.mod
30
	rm -f *.o
31
 
32
 
33
distclean: clean
34
	rm -f $(PROG)
35
 
36
help:
37
	@echo ''
38
	@echo '  posible make targets:'
39
	@echo '  -------------------------------------------------------'
40
	@echo '   make                 : build all'
41
	@echo '   make all             : (= make)'
42
	@echo ''
43
	@echo '   make clean           : delete libs/mod/obj'
44
	@echo '   gmake distclean      : clean up distribution'
45
	@echo ''
46
	@echo '   gmake zip             : zip source-code'
47
	@echo '  -------------------------------------------------------'
48
	@echo ''
49
 
50
 
51
%.o: %.f90
52
	$(F90) $(F90FLAGS) $(LIBS) $(INCLUDES) -c $<
53
%.o: %.f
54
	$(FC) $(FFLAGS) $(LIBS) $(INCLUDES) -c $<
55
 
56
## ------------------------------------------------------------------