File: Makefile

package info (click to toggle)
pvm 3.4.6-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,284 kB
  • sloc: ansic: 72,074; makefile: 1,198; fortran: 631; sh: 285; csh: 74; asm: 37
file content (49 lines) | stat: -rw-r--r-- 1,219 bytes parent folder | download | duplicates (12)
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
#
# $Id: Makefile,v 1.8 1998/10/01 21:08:19 pvmsrc Exp $
#
#
PVMDIR      =   ../..

SDIR        =   $(PVMDIR)/examples

CONFFILE    =   $(PVMDIR)/conf/$(PVM_ARCH).def

LIBDIR      =   $(PVMDIR)/lib/$(PVM_ARCH)

include ${CONFFILE}

#### Example programs that can be built by ../Makefile.aimk

EXAMPLES = 	hello hello_other \
			master1 slave1 fmaster1 fslave1 \
			spmd fspmd \
			dbwtest ibwtest pbwtest rbwtest \
			timing timingh timing_slave \
			hitc hitc_slave \
			gexample fgexample \
			gmbi \
			lmbi

HEXAMPLES = helloh \
			master1h \
			timingh \
			gexampleh fgexampleh \
			gmbih \
			hitch
#### Targets that are NOT example programs but are recognized by
#  ../Makefile.aimk

AIMKTARGETS = default all c-all f-all hostprogs clean 

#### How to build programs using ../Makefile.aimk. Notice that 
#  		PVMLIB and PVMHLIB are set for MPPs (lpvm3pe, lpvm3, respectively). 
#  		Hence the default examples are built for MPP nodes.

${EXAMPLES}:
	$(MAKE) -f $(CONFFILE) PVMLIB=-lpvm3pe PVMHLIB=-lpvm3 \
		FORT=${NODEFORT} CC=${NODECC} -f $(SDIR)/Makefile.aimk $@ 

${HEXAMPLES} ${AIMKTARGETS}:
	$(MAKE) -f $(CONFFILE) PVMLIB=-lpvm3pe PVMHLIB=-lpvm3 \
		FORT=${FORTRAN} CC=${CC} -f $(SDIR)/Makefile.aimk $@