File: Makefile

package info (click to toggle)
adios 1.13.1-31
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,692 kB
  • sloc: ansic: 133,236; f90: 8,791; sh: 7,779; python: 7,648; xml: 3,793; makefile: 2,996; cpp: 2,340; java: 626; sed: 16; perl: 8
file content (49 lines) | stat: -rw-r--r-- 1,296 bytes parent folder | download | duplicates (5)
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
## MPIF90 SETTINGS
FC=mpif90
FFLAGS=-g

## FTN SETTINGS
#FC=ftn
#FFLAGS = -O3

#BG/P IBM compiler
#FC=mpixlf90
#FFLAGS=-O0 -qarch=450 -qtune=450

#TARGET=gnu
TARGET=pgi

## Set ADIOS_DIR here or before doing make
override ADIOS_DIR:=/ccs/proj/e2e/pnorbert/ADIOS/sith.pgi
override ADIOS_INC:=` ${ADIOS_DIR}/bin/adios_config -c -f`
override ADIOS_FLIB:=`${ADIOS_DIR}/bin/adios_config -l -f`
override GPP = ${ADIOS_DIR}/bin/gpp.py

default: coupling_writer_2D coupling_reader_2D 
all: default

coupling_writer_2D.o : coupling_writer_2D.F90 gwrite_writer2D.fh
	${FC} -g -c ${ADIOS_INC} coupling_writer_2D.F90  $<

coupling_writer_2D:  coupling_writer_2D.o gwrite_writer2D.fh
	${FC} -g -o coupling_writer_2D coupling_writer_2D.o ${ADIOS_FLIB} 

gwrite_writer2D.fh: coupling_writer_2D.xml
	${GPP} coupling_writer_2D.xml

coupling_reader_2D.o : coupling_reader_2D.F90 gwrite_reader2D.fh
	${FC} -g -c ${ADIOS_INC} coupling_reader_2D.F90  $<

coupling_reader_2D:  coupling_reader_2D.o gwrite_reader2D.fh
	${FC} -g -o coupling_reader_2D coupling_reader_2D.o ${ADIOS_FLIB} 

gwrite_reader2D.fh: coupling_reader_2D.xml
	${GPP} coupling_reader_2D.xml


clean:
	rm -f *.o *.mod *.fh core.* 
	rm -f coupling_writer_2D coupling_reader_2D 
        
distclean: clean
	rm -f log.* dataspaces.conf conf srv.lck *.bp