source: CPL/oasis3-mct/branches/OASIS3-MCT_5.0_branch/lib/mct/mpi-serial/Makefile @ 6331

Last change on this file since 6331 was 6331, checked in by aclsce, 17 months ago

Moved oasis-mct_5.0 in oasis3-mct/branches directory.

File size: 1.5 KB
Line 
1SHELL           = /bin/sh
2###############################
3include Makefile.conf
4
5VPATH=$(SRCDIR)/mpi-serial
6# SOURCE FILES
7
8MODULE          = mpi-serial
9
10SRCS_F90        = fort.F90 \
11                  mpif.F90
12
13SRCS_C          = mpi.c \
14                  send.c \
15                  recv.c \
16                  collective.c \
17                  req.c \
18                  list.c \
19                  handles.c \
20                  comm.c \
21                  error.c \
22                  ic_merge.c \
23                  group.c \
24                  time.c \
25                  pack.c \
26                  type.c \
27                  type_const.c \
28                  copy.c \
29                  op.c \
30                  cart.c \
31                  getcount.c \
32                  probe.c \
33                  info.c
34
35
36OBJS_ALL        = $(SRCS_C:.c=.o) \
37                  $(SRCS_F90:.F90=.o)
38
39
40INCPATH:= -I .
41
42
43###############################
44
45# TARGETS
46
47default: lib$(MODULE).a
48
49
50fort.o: mpif.h
51
52
53lib$(MODULE).a: $(OBJS_ALL)
54        echo $(OBJS_ALL)
55        $(RM) $@
56        $(AR) $@ $(OBJS_ALL)
57        $(RANLIB) $@
58
59
60LIB     = lib$(MODULE).a
61
62
63###############################
64#RULES
65
66.SUFFIXES:
67.SUFFIXES: .F90 .c .o
68
69.c.o:
70        $(CC) -c $(INCPATH) $(DEFS) $(CPPDEFS) $(CFLAGS) $<
71
72.F90.o:
73        $(FC) -c $(INCFLAG) . $(INCPATH) $(DEFS) $(FPPDEFS) $(FCFLAGS) $(MPEUFLAGS) $<
74
75MYF90FLAGS=$(INCPATH) $(DEFS) $(FCFLAGS)  $(MPEUFLAGS)
76
77.PHONY: clean tests install
78
79clean:
80        /bin/rm -f *.o ctest ftest $(LIB) mpi.mod config.log config.status
81        cd tests ; $(MAKE) clean
82
83tests:
84        cd tests; make
85
86install: lib
87        $(MKINSTALLDIRS) $(libdir) $(includedir)
88        $(INSTALL) lib$(MODULE).a -m 644 $(libdir)
89        $(INSTALL) mpi.h -m 644 $(includedir)
90        $(INSTALL) mpif.h -m 644 $(includedir)
91
92
93
Note: See TracBrowser for help on using the repository browser.