~ubuntu-branches/ubuntu/utopic/adios/utopic

« back to all changes in this revision

Viewing changes to examples/coupling/Makefile

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2013-12-09 15:21:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20131209152131-jtd4fpmdv3xnunnm
Tags: 1.5.0-1
* New upstream.
* Standards-Version: 3.9.5
* Include latest config.{sub,guess} 
* New watch file.
* Create libadios-bin for binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## MPIF90 SETTINGS
 
2
FC=mpif90
 
3
FFLAGS=-g
 
4
 
 
5
## FTN SETTINGS
 
6
#FC=ftn
 
7
#FFLAGS = -O3
 
8
 
 
9
#BG/P IBM compiler
 
10
#FC=mpixlf90
 
11
#FFLAGS=-O0 -qarch=450 -qtune=450
 
12
 
 
13
#TARGET=gnu
 
14
TARGET=pgi
 
15
 
 
16
## Set ADIOS_DIR here or before doing make
 
17
override ADIOS_DIR:=/ccs/proj/e2e/pnorbert/ADIOS/sith.pgi
 
18
override ADIOS_INC:=` ${ADIOS_DIR}/bin/adios_config -c -f`
 
19
override ADIOS_FLIB:=`${ADIOS_DIR}/bin/adios_config -l -f`
 
20
override GPP = ${ADIOS_DIR}/bin/gpp.py
 
21
 
 
22
default: coupling_writer_2D coupling_reader_2D 
 
23
all: default
 
24
 
 
25
coupling_writer_2D.o : coupling_writer_2D.F90 gwrite_writer2D.fh
 
26
        ${FC} -g -c ${ADIOS_INC} coupling_writer_2D.F90  $<
 
27
 
 
28
coupling_writer_2D:  coupling_writer_2D.o gwrite_writer2D.fh
 
29
        ${FC} -g -o coupling_writer_2D coupling_writer_2D.o ${ADIOS_FLIB} 
 
30
 
 
31
gwrite_writer2D.fh: coupling_writer_2D.xml
 
32
        ${GPP} coupling_writer_2D.xml
 
33
 
 
34
coupling_reader_2D.o : coupling_reader_2D.F90 gwrite_reader2D.fh
 
35
        ${FC} -g -c ${ADIOS_INC} coupling_reader_2D.F90  $<
 
36
 
 
37
coupling_reader_2D:  coupling_reader_2D.o gwrite_reader2D.fh
 
38
        ${FC} -g -o coupling_reader_2D coupling_reader_2D.o ${ADIOS_FLIB} 
 
39
 
 
40
gwrite_reader2D.fh: coupling_reader_2D.xml
 
41
        ${GPP} coupling_reader_2D.xml
 
42
 
 
43
 
 
44
clean:
 
45
        rm -f *.o *.mod *.fh core.* 
 
46
        rm -f coupling_writer_2D coupling_reader_2D 
 
47
        
 
48
distclean: clean
 
49
        rm -f log.* dataspaces.conf conf srv.lck *.bp