File: Makefile

package info (click to toggle)
lam 6.1-11
  • links: PTS
  • area: main
  • in suites: slink
  • size: 7,764 kB
  • ctags: 5,834
  • sloc: ansic: 55,525; makefile: 1,449; fortran: 184; sh: 39; asm: 26; csh: 12
file content (89 lines) | stat: -rw-r--r-- 2,489 bytes parent folder | download
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
##
##	Ohio Trollius
##	Copyright 1996 The Ohio State University
##
##	Function:	- libpmpi.a
##			- MPI profiling library
##

DEPTH	= ../../..

##
## global configuration
##
include $(DEPTH)/Config/config

##
## local configuration
##
VPATH	= $(DEPTH)/lib/otb/pmpi:$(DEPTH)/share/mpi
INCLUDE	= -I$(IDIR)
DEFS	= -D$(RPI) -D$(SHM) -DMPI_GER=$(MPI_GER) -DPROFILELIB
LCFLAGS = $(INCLUDE) $(DEFS)
AFLAGS	= rv

##
## modules and libraries
##
LIB	= libpmpi.a

SRC	= abort.c accept.c address.c allgather.c allgatherv.c allreduce.c \
	  alltoall.c alltoallv.c attrdel.c attrget.c attrput.c \
	  barrier.c bcast.c bsend.c bsendinit.c bufattach.c bufdetach.c \
	  cancel.c cartcoords.c cartcreate.c cartdimget.c cartget.c \
	  cartmap.c cartrank.c cartshift.c cartsub.c ccmp.c ccreate.c \
	  cdisconnect.c cdup.c cfree.c cgroup.c connect.c crank.c crgroup.c \
	  crsize.c csize.c csplit.c ctestinter.c \
	  dimscreate.c \
	  errclass.c errcreate.c errfree.c errget.c errset.c errstring.c \
	  finalize.c \
	  gather.c gatherv.c gcmp.c gdiff.c getcount.c getelem.c \
	  getprocname.c getversion.c gexcl.c gfree.c gincl.c ginter.c grank.c \
	  graphcreate.c graphdimsget.c graphget.c graphmap.c graphnbr.c \
	  graphnbrcount.c grexcl.c grincl.c gsize.c gtranks.c gunion.c \
	  ibsend.c iccreate.c icmerge.c infocreate.c infodel.c infodup.c \
	  infofree.c infoget.c infogetnkeys.c infogetnth.c infogetvlen.c \
	  infoset.c init.c inited.c iprobe.c irecv.c irsend.c isend.c issend.c \
	  keycreate.c keyfree.c \
	  mpil_spawn.c \
	  nameget.c namepub.c nameunpub.c \
	  opcreate.c opfree.c \
	  pack.c packsize.c pcontrol.c portclose.c portopen.c probe.c \
	  recv.c recvinit.c reduce.c reducescatter.c reqfree.c rsend.c \
	  rsendinit.c \
	  scan.c scatter.c scatterv.c send.c sendinit.c sendrecv.c \
	  sendrecvrep.c spawn.c spawnmult.c ssend.c ssendinit.c start.c \
	  startall.c \
	  tcommit.c tcontig.c test.c testall.c testany.c \
	  testcancel.c testsome.c textent.c tfree.c thindex.c thvector.c \
	  tindex.c tlb.c topotest.c tsize.c tstruct.c tub.c tvector.c \
	  unpack.c \
	  wait.c waitall.c waitany.c waitsome.c wtick.c wtime.c

OBJ 	= $(SRC:.c=.o)

all: $(LIB)

$(LIB): $(OBJ)
	$(RM) $(LIB)
	$(AR) $(AFLAGS) $(LIB) $(OBJ)
	$(RANLIB) $(LIB)

install: $(OLDIR)/$(LIB)

$(OLDIR)/$(LIB): $(LIB)
	$(INSTALL) $(LIB) $(OLDIR)/$(LIB)
	$(RANLIB) $(OLDIR)/$(LIB)

clean:
	$(RM) $(OBJ) $(LIB)

##
## depend:
##
include	$(DEPTH)/Config/depend

##
## automatic dependencies and rules
##
include Depends