File: Makefile

package info (click to toggle)
pvm 3.4.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 8,236 kB
  • sloc: ansic: 72,074; makefile: 1,197; fortran: 631; sh: 512; csh: 74; asm: 37
file content (107 lines) | stat: -rw-r--r-- 3,421 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
#
# $Id: Makefile,v 1.9 2007/03/07 18:16:06 pvmsrc Exp $
#
# top-level PVM3 makefile
#

SHELL	=	/bin/sh

AIMKSTR	=	-here -f ./conf/`./debian/getpvmarch`.def -f ./Makefile.aimk CFLOPTS=''

default:
	./lib/aimk $(AIMKSTR) default

install:
	./lib/aimk $(AIMKSTR) install

all:
	./lib/aimk $(AIMKSTR) all

clean:
	./lib/aimk $(AIMKSTR) clean
	-find . -name '*.[oa]' -print | xargs rm
	-rm bin/*/* lib/*/* pvmgs/*/* tracer/*/* 
	-rm console/*/pvm src/*/pvmd3 
	-rm -rf src/*/regex

shared:
	./lib/aimk $(AIMKSTR) shared

s:
	./lib/aimk $(AIMKSTR) s

c:
	./lib/aimk $(AIMKSTR) c

f:
	./lib/aimk $(AIMKSTR) f

g: 
	./lib/aimk $(AIMKSTR) g

e:
	./lib/aimk $(AIMKSTR) e

m:
	./lib/aimk $(AIMKSTR) m

t:
	./lib/aimk $(AIMKSTR) t

x:
	./lib/aimk $(AIMKSTR) x

r:
	./lib/aimk $(AIMKSTR) r



# compile for /usr/local directories

local:
	./lib/aimk $(AIMKSTR)  CFLOPTS='"-O -DSAFETMP -DPVMDPATH=\\\"pvmd\\\" -DPVMDFILE=\\\"/usr/local/bin/pvmd\\\" -DPVM_DEFAULT_ROOT=\\\"/usr/local/lib/pvm3\\\" "' PVMDIR=`pwd` default

# compile for system directories
system:
	./lib/aimk $(AIMKSTR)  CFLOPTS='"-g -O2 -DSAFETMP -DPVMDPATH=\\\"pvmd\\\" -DPVMDFILE=\\\"/usr/bin/pvmd\\\" -DPVM_DEFAULT_ROOT=\\\"/usr/lib/pvm3\\\" "' PVMDIR=`pwd` default


install-local:
	-mkdir -p /usr/local/lib/pvm3/lib /usr/local/lib/pvm3/bin \
               /usr/local/lib/pvm3/conf
	cp lib/pvmgetarch lib/aimk /usr/local/lib/pvm3/lib
	cp -pr lib/`./lib/pvmgetarch` /usr/local/lib/pvm3/lib
	cp -pr bin/`./lib/pvmgetarch` /usr/local/lib/pvm3/bin
	cp -pr include /usr/local/lib/pvm3/
	cp  conf/`./lib/pvmgetarch`* /usr/local/lib/pvm3/conf
	ln -sf /usr/local/lib/pvm3/lib/aimk /usr/local/bin
	ln -sf /usr/local/lib/pvm3/lib/pvmgetarch /usr/local/bin
	ln -sf /usr/local/lib/pvm3/lib/`./lib/pvmgetarch`/pvm /usr/local/bin
	ln -sf /usr/local/lib/pvm3/lib/`./lib/pvmgetarch`/pvmgs /usr/local/bin
	ln -sf /usr/local/lib/pvm3/lib/`./lib/pvmgetarch`/pvmd3 /usr/local/bin/pvmd
	ln -sf /usr/local/lib/pvm3/lib/`./lib/pvmgetarch`/pvmd3 /usr/local/lib/pvm3/lib/pvmd
	ln -sf /usr/local/lib/pvm3/lib/`./lib/pvmgetarch`/pvm /usr/local/lib/pvm3/lib/pvm

install-deb:
	-mkdir -p $(DESTDIR)/usr/lib/pvm3/lib $(DESTDIR)/usr/lib/pvm3/bin \
               $(DESTDIR)/usr/lib/pvm3/conf
	cp lib/pvmgetarch lib/aimk $(DESTDIR)/usr/lib/pvm3/lib
	cp -pr lib/`./lib/pvmgetarch` $(DESTDIR)/usr/lib/pvm3/lib
	cp -pr bin/`./lib/pvmgetarch` $(DESTDIR)/usr/lib/pvm3/bin
	cp  conf/`./lib/pvmgetarch`* $(DESTDIR)/usr/lib/pvm3/conf
	cp  include/* $(DESTDIR)/usr/include
	mv $(DESTDIR)/usr/lib/pvm3/lib/aimk $(DESTDIR)/usr/bin
	mv $(DESTDIR)/usr/lib/pvm3/lib/pvmgetarch $(DESTDIR)/usr/bin
	ln -sf ../../../bin/pvmgetarch  $(DESTDIR)/usr/lib/pvm3/lib/pvmgetarch 
	mv $(DESTDIR)/usr/lib/pvm3/lib/`./lib/pvmgetarch`/pvm $(DESTDIR)/usr/bin
	mv $(DESTDIR)/usr/lib/pvm3/lib/`./lib/pvmgetarch`/pvmgs $(DESTDIR)/usr/bin
	mv $(DESTDIR)/usr/lib/pvm3/lib/`./lib/pvmgetarch`/pvmd3 $(DESTDIR)/usr/bin/pvmd
	ln -sf ../../../bin/pvmd  $(DESTDIR)/usr/lib/pvm3/lib/pvmd
	ln -sf ../../../bin/pvm  $(DESTDIR)/usr/lib/pvm3/lib/pvm
	mv $(DESTDIR)/usr/lib/pvm3/lib/`./lib/pvmgetarch`/*.a $(DESTDIR)/usr/lib
	mv $(DESTDIR)/usr/lib/pvm3/bin/`./lib/pvmgetarch`/* $(DESTDIR)/usr/bin
#      cp -r man/man1 $(DESTDIR)/usr/man
#      cp -r man/man3 $(DESTDIR)/usr/man
	tar cf - examples | gzip -9 > $(DESTDIR)/usr/share/doc/pvm-dev/examples.tar.gz
	tar cf - gexamples | gzip -9 > $(DESTDIR)/usr/share/doc/pvm-dev/gexamples.tar.gz