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 (139 lines) | stat: -rw-r--r-- 4,943 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
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
139
##
##	Ohio Trollius
##	Copyright 1996 The Ohio State University
##
##	Function:	- libmpi.a
##			- MPI library
##

DEPTH	= ../../..

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

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

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

CSRC	= 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 \
	  c2cbuf.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 dupfn.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 \
	  lamattr.c lambuf.c lamcid.c lamclocks.c lamcomm.c lamdeferr.c \
	  lamdtype.c lamfault.c laminit.c laminited.c lammisc.c lampack.c \
	  lamports.c lamprocs.c lamreduce.c lamreqs.c lamsend.c lamtest.c \
	  lamtrace.c lamunpack.c lamupdown.c \
	  m2l.c mpietc.c mpil_id.c mpil_signal.c mpil_spawn.c mpil_trace.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 rpi.lamd.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

F77SRC	= MPI.c \
	  abort_f.c accept_f.c address_f.c allgather_f.c allgatherv_f.c \
	  allreduce_f.c alltoall_f.c alltoallv_f.c attrdel_f.c attrget_f.c \
	  attrput_f.c \
	  barrier_f.c bcast_f.c bsend_f.c bsendinit_f.c \
	  bufattach_f.c bufdetach_f.c \
	  cancel_f.c cartcoords_f.c cartcreate_f.c cartdimget_f.c cartget_f.c \
	  cartmap_f.c cartrank_f.c cartshift_f.c cartsub_f.c ccmp_f.c \
	  ccreate_f.c cdisconnect_f.c cdup_f.c cfree_f.c \
	  cgroup_f.c connect_f.c crank_f.c crgroup_f.c crsize_f.c csize_f.c \
	  csplit_f.c ctestinter_f.c \
	  dimscreate_f.c dupfn_f.c \
	  errclass_f.c errcreate_f.c errfree_f.c errget_f.c errset_f.c \
	  errstring_f.c \
	  finalize_f.c \
	  gather_f.c gatherv_f.c gcmp_f.c gdiff_f.c getcount_f.c \
	  getelem_f.c getprocname_f.c getversion_f.c \
	  gexcl_f.c gfree_f.c gincl_f.c ginter_f.c \
	  grank_f.c graphcreate_f.c graphdimsget_f.c graphget_f.c graphmap_f.c \
	  graphnbr_f.c graphnbrcount_f.c grexcl_f.c grincl_f.c gsize_f.c \
	  gtranks_f.c gunion_f.c \
	  ibsend_f.c iccreate_f.c icmerge_f.c infocreate_f.c infodel_f.c \
	  infodup_f.c infofree_f.c infoget_f.c infogetnkeys_f.c \
	  infogetnth_f.c infogetvlen_f.c infoset_f.c init_f.c inited_f.c \
	  iprobe_f.c irecv_f.c irsend_f.c isend_f.c issend_f.c \
	  keycreate_f.c keyfree_f.c \
	  mpil_id_f.c mpil_signal_f.c mpil_spawn_f.c mpil_trace_f.c \
	  nameget_f.c namepub_f.c nameunpub_f.c \
	  opcreate_f.c opfree_f.c \
	  pack_f.c packsize_f.c pcontrol_f.c portclose_f.c portopen_f.c \
	  probe_f.c \
	  recv_f.c recvinit_f.c reduce_f.c reducescatter_f.c reqfree_f.c \
	  rsend_f.c rsendinit_f.c \
	  scan_f.c scatter_f.c scatterv_f.c send_f.c sendinit_f.c \
	  sendrecv_f.c sendrecvrep_f.c spawn_f.c spawnmult_f.c ssend_f.c \
	  ssendinit_f.c start_f.c startall_f.c \
	  tcommit_f.c tcontig_f.c test_f.c testall_f.c testany_f.c \
	  testcancel_f.c testsome_f.c textent_f.c tfree_f.c thindex_f.c \
	  thvector_f.c tindex_f.c tlb_f.c topotest_f.c tsize_f.c tstruct_f.c \
	  tub_f.c tvector_f.c \
	  unpack_f.c \
	  wait_f.c waitall_f.c waitany_f.c waitsome_f.c \
	  wtick_f.c wtime_f.c

SRC	= $(RPISRC) $(CSRC) $(F77SRC)

OBJ 	= $(RPIOBJ) $(CSRC:.c=.o) $(F77SRC:.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