File: Makefile.aimk

package info (click to toggle)
pvm 3.4.6-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 8,236 kB
  • sloc: ansic: 72,074; makefile: 1,197; fortran: 631; sh: 512; csh: 74; asm: 37
file content (138 lines) | stat: -rw-r--r-- 2,520 bytes parent folder | download | duplicates (2)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#
# $Id: Makefile.aimk,v 1.7 2007/03/07 18:16:06 pvmsrc Exp $
#
# top-level PVM3 aimk makefile
#
# targets:
#  s: src - pvmd3, libpvm3.a
#  c: console - pvm
#  f: fortran lib - libfpvm3.a
#  g: groups - pvmgs, libgpvm3.a
#  e: examples
#  t: tracer
#  m: xep example
#  x: xpvm
#  r: srm
#

SHELL		=	/bin/sh

#
# Override with Any User Defaults
#
# (*** Must Add To PVMOPTS List To Pass Down ***)
#

#CC			=	cc
#CFLOPTS	=	-g
#F77		=	f77
#FFLOPTS	=	-g
#PVMDIR		=	../..

#
# Pass Options Down
#

PVMOPTS		=	CC="$(CC)" \
				F77=$(F77) \
				CFLOPTS=$(CFLOPTS)
				FFLOPTS=$(FFLOPTS)
#				PVMDIR=$(PVMDIR)

#
# Targets
#

default:	s c f g

install:	default

all:	s c f g e m t x r

c:	s t

g:	s

e:	s f g

m:	s

t:	s

x:	s

r:	c

clean:
	- cd src; ../lib/aimk $(PVMOPTS) clean
	- cd console; ../lib/aimk $(PVMOPTS) clean
	- cd libfpvm; ../lib/aimk $(PVMOPTS) clean
	- cd pvmgs; ../lib/aimk $(PVMOPTS) clean
	- cd examples; ../lib/aimk $(PVMOPTS) clean
	- cd gexamples; ../lib/aimk $(PVMOPTS) clean
	- cd tracer; ../lib/aimk $(PVMOPTS) clean
	- cd xep; ../lib/aimk $(PVMOPTS) clean
	- cd xpvm; ../lib/aimk $(PVMOPTS) clean
	- cd rm; ../lib/aimk $(PVMOPTS) clean

## build pvmd, libpvm ##
s:
	@ echo "building in src"
	cd src; ../lib/aimk $(PVMOPTS) install
	@ echo "done building in src"

## build libfpvm ##
f:
	@ echo "building libfpvm"
	cd libfpvm; ../lib/aimk $(PVMOPTS) install
	@ echo "done building libfpvm"

## build groups ##
g:
	@ echo "building group server and library"
	cd pvmgs; ../lib/aimk $(PVMOPTS) install
	@ echo "done building group server and library"

## build pvm console ##
c:
	@ echo "building console"
	cd console; ../lib/aimk $(PVMOPTS) install
	@ echo "done building console"

## build xep example ##
m:
	@ echo "building xep example"
	- cd xep; ../lib/aimk $(PVMOPTS)
	@ echo "done building xep example"

## build example programs ##
e:
	@ echo "building examples"
	- cd examples; ../lib/aimk $(PVMOPTS) all
	- cd gexamples; ../lib/aimk $(PVMOPTS) all
	@ echo "done building examples"

## build tracer ##
t:
	@ echo "building tracer"
	- cd tracer; ../lib/aimk $(PVMOPTS) install
	@ echo "done building tracer"

## build xpvm ##
x:
	@ echo "building XPVM"
	- cd xpvm; ../lib/aimk $(PVMOPTS) install
	@ echo "done building XPVM"

## build srm ##
r:
	@ echo "building srm"
	- cd rm; ../lib/aimk $(PVMOPTS) install
	@ echo "done building srm"

## build pvmd, libpvm.so ##
shared:
	@ echo "building shared in src"
	cd src; ../lib/aimk $(PVMOPTS) install-shared
	@ echo "done building shared in src"