root/mpich2/trunk/src/mpi/romio/mpi-io/Makefile.in @ 4863

Revision 4863, 12.2 KB (checked in by robl, 5 months ago)

Mostly BillG: introduce quiet-make from MPICH2 to ROMIO

Line 
1CC          = @CC@
2AR          = @AR@
3LIBNAME     = @LIBNAME@
4RANLIB      = @RANLIB@
5srcdir      = @srcdir@
6CC_SHL      = @CC_SHL@
7SHLIBNAME   = @SHLIBNAME@
8
9#DEFS            = @DEFS@ -I. -I${srcdir}
10CPPFLAGS        = @CPPFLAGS@
11INCLUDES = -I@MPI_INCLUDE_DIR@ -I${srcdir} -I../include \
12           -I${srcdir}/../adio/include -I../adio/include \
13           -I${srcdir}/../../../include  -I../../../include
14#CFLAGS      = $(CPPFLAGS) @CFLAGS@ $(MPIOPROFILE) $(INCLUDES)
15CFLAGS          = @CFLAGS@ $(MPIOPROFILE)
16top_builddir    = @master_topbuild_dir@
17LIBTOOL         = @LIBTOOL@
18C_COMPILE       = $(CC) $(DEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS)
19C_COMPILE_SHL   = $(CC_SHL) $(DEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS)
20#C_COMPILE_SHL = $(CC_SHL)
21
22@VPATH@
23
24# mpi_sources gives the files that implement the MPI IO routines. 
25# This is used for the MPICH2 documentation target, and does not
26# include files either not used in MPICH2 or that do not contain
27# documentation entries.
28mpi_sources = close.c read.c open.c write.c set_view.c \
29      iread.c iwrite.c \
30      seek.c get_posn.c \
31      delete.c read_all.c read_at.c \
32      read_atall.c iread_at.c iwrite_at.c write_all.c get_bytoff.c \
33      write_at.c write_atall.c get_view.c get_group.c get_amode.c \
34      get_extent.c fsync.c get_atom.c set_atom.c \
35      set_size.c get_size.c prealloc.c file_f2c.c file_c2f.c \
36      set_info.c get_info.c \
37      rd_atallb.c rd_atalle.c read_allb.c read_alle.c wr_atallb.c \
38      wr_atalle.c write_allb.c write_alle.c \
39      get_posn_sh.c iread_sh.c read_sh.c write_sh.c \
40      iwrite_sh.c seek_sh.c read_ord.c read_orde.c write_ordb.c \
41      read_ordb.c write_ord.c write_orde.c mpiu_greq.c register_datarep.c\
42      mpir-mpioinit.c
43
44# EXTRA objects are ones that need to be included for all but MPICH2
45MPIO_OBJECTS = close.o read.o open.o write.o set_view.o \
46      iread.o iwrite.o \
47      seek.o get_posn.o \
48      delete.o read_all.o read_at.o \
49      read_atall.o iread_at.o iwrite_at.o write_all.o get_bytoff.o \
50      write_at.o write_atall.o get_view.o get_group.o get_amode.o \
51      get_extent.o fsync.o get_atom.o set_atom.o \
52      set_size.o get_size.o prealloc.o file_f2c.o file_c2f.o \
53      set_info.o get_info.o \
54      rd_atallb.o rd_atalle.o read_allb.o read_alle.o wr_atallb.o \
55      wr_atalle.o write_allb.o write_alle.o \
56      get_posn_sh.o iread_sh.o read_sh.o write_sh.o \
57      iwrite_sh.o seek_sh.o read_ord.o read_orde.o write_ordb.o \
58      read_ordb.o write_ord.o write_orde.o mpiu_greq.o mpich2_fileutil.o \
59      register_datarep.o mpir-mpioinit.o
60
61# MPIO_REQOBJECTS are the routines that provide the MPIO_Wait etc.
62# routines (iotest.o, iowait.o iowaitall.o iowaitany.o iotestall.o
63# iotestany.o iowaitsome.o and iotestsome.o)
64MPIO_REQOBJECTS = @MPIO_REQOBJECTS@
65
66# Either get_errh.o set_errh.o or empty
67MPIO_EXTRA_OBJECTS = @MPIO_EXTRA_OBJECTS@ @MPIO_REQOBJECTS@
68
69# mpich2_fileutil.p is not included because it does not include any
70# name-shifted functions
71MPIO_TMP_POBJECTS = close.p read.p open.p write.p get_extent.p \
72      iread.p iwrite.p \
73      seek.p \
74      delete.p read_all.p read_at.p \
75      read_atall.p iread_at.p iwrite_at.p get_posn.p \
76      write_all.p write_at.p write_atall.p get_bytoff.p \
77      set_view.p get_view.p get_group.p get_amode.p \
78      fsync.p get_atom.p set_atom.p set_size.p get_size.p prealloc.p \
79      file_f2c.p file_c2f.p set_info.p get_info.p \
80      rd_atallb.p rd_atalle.p read_allb.p read_alle.p wr_atallb.p \
81      wr_atalle.p write_allb.p write_alle.p \
82      get_posn_sh.p iread_sh.p read_sh.p write_sh.p \
83      iwrite_sh.p seek_sh.p read_ord.p read_orde.p write_ordb.p \
84      read_ordb.p write_ord.p write_orde.p register_datarep.p
85
86# Either get_errh.p set_errh.p or empty
87MPIO_EXTRA_TMP_POBJECTS = @MPIO_EXTRA_TMP_POBJECTS@ @MPIO_REQ_TMP_POBJECTS@
88
89# _mpich2_fileutil.o is not included because it does not include any
90# name-shifted functions
91MPIO_REAL_POBJECTS = _close.o _read.o _open.o _get_extent.o \
92      _write.o _set_view.o _seek.o _read_at.o _prealloc.o \
93      _iread.o _iwrite.o \
94      _get_posn.o \
95      _delete.o _read_all.o _get_bytoff.o \
96      _read_atall.o _iread_at.o _iwrite_at.o _get_group.o _get_amode.o \
97      _write_all.o _write_at.o _write_atall.o _get_view.o \
98      _fsync.o _get_atom.o _set_atom.o _set_size.o _get_size.o \
99      _file_f2c.o _file_c2f.o \
100      _set_info.o _get_info.o \
101      _rd_atallb.o _rd_atalle.o _read_allb.o _read_alle.o _wr_atallb.o \
102      _wr_atalle.o _write_allb.o _write_alle.o \
103      _get_posn_sh.o _iread_sh.o _read_sh.o _write_sh.o \
104      _iwrite_sh.o _seek_sh.o _read_ord.o _read_orde.o _write_ordb.o \
105      _read_ordb.o _write_ord.o _write_orde.o _register_datarep.o
106
107# Either _get_errh.o _set_errh.o or empty
108MPIO_EXTRA_REAL_POBJECTS = @MPIO_EXTRA_REAL_POBJECTS@ @MPIO_REQ_REAL_POBJECTS@
109
110all: $(LIBNAME)
111        @if [ "@ENABLE_SHLIB@" != "none" ] ; then \
112            $(MAKE) $(SHLIBNAME).la ;\
113        fi
114
115.SUFFIXES: $(SUFFIXES) .p .sp .lo .man .html .latex .txt
116
117#       $(CC) $(CFLAGS) -c $<
118.c.o:
119        @if [ "x$(VERBOSE)" != "x1" ] ; then \
120          echo "  CC              $<" ; \
121        else \
122          echo $(C_COMPILE) -c $< ; \
123        fi
124        @$(C_COMPILE) -c $<
125#       $(C_COMPILE_SHL) $(CFLAGS) -c $< -o _s$*.o
126#       @mv -f _s$*.o $*.lo
127.c.lo:
128        @if [ "x$(VERBOSE)" != "x1" ] ; then \
129          echo "  CC              $<" ; \
130        else \
131          echo $(C_COMPILE_SHL) -c $< -o _s$*.o ; \
132          echo mv -f _s$*.o $*.lo ; \
133        fi
134        @$(C_COMPILE_SHL) -c $< -o _s$*.o
135        @mv -f _s$*.o $*.lo
136
137#       $(CC) $(CFLAGS) -c $< -o _$*.o
138.c.p:
139        @if [ "x$(VERBOSE)" != "x1" ] ; then \
140          echo "  CC              $<" ; \
141        else \
142          echo $(C_COMPILE) -c $< -o _$*.o ; \
143        fi
144        @$(C_COMPILE) -c $< -o _$*.o
145
146#       @cp $(srcdir)/$*.c _$*.c
147#       @rm -f _$*.c
148# Send the output to a .o file because some compilers require all object
149# files to have an extension of .o
150#       $(C_COMPILE_SHL) $(CFLAGS) -c $< -o _sp$*.o
151#       @mv -f _sp$*.o _$*.lo
152.c.sp:
153        @if [ "x$(VERBOSE)" != "x1" ] ; then \
154          echo "  CC              $<" ; \
155        else \
156          echo $(C_COMPILE_SHL) -c $< -o _sp$*.o ; \
157          echo mv -f _sp$*.o _$*.lo ; \
158        fi
159        @$(C_COMPILE_SHL) -c $< -o _sp$*.o
160        @mv -f _sp$*.o _$*.lo
161
162profile: $(MPIO_REAL_POBJECTS) $(MPIO_EXTRA_TMP_POBJECTS)
163        $(AR) $(LIBNAME) $(MPIO_REAL_POBJECTS) $(MPIO_EXTRA_REAL_POBJECTS)
164        $(RANLIB) $(LIBNAME)
165        @if [ "@ENABLE_SHLIB@" != "none" ] ; then \
166            $(MAKE) P$(SHLIBNAME).la ;\
167        fi
168
169coverage:
170        -@for file in  ${MPIO_OBJECTS:.o=.c} ; do \
171                gcov -b -f $$file ; done
172
173$(LIBNAME): $(MPIO_OBJECTS) $(MPIO_EXTRA_OBJECTS)
174        $(AR) $(LIBNAME) $(MPIO_OBJECTS) $(MPIO_EXTRA_OBJECTS)
175        $(RANLIB) $(LIBNAME)
176
177MPIO_LOOBJECTS = $(MPIO_OBJECTS:.o=.lo)
178MPIO_EXTRA_LOOBJECTS = $(MPIO_EXTRA_OBJECTS:.o=.lo)
179
180$(SHLIBNAME).la: $(MPIO_LOOBJECTS) $(MPIO_EXTRA_LOOBJECTS)
181        $(AR) $(SHLIBNAME).la $(MPIO_LOOBJECTS) $(MPIO_EXTRA_LOOBJECTS)
182
183# --------------------------------------------------------------------------
184# We use P$(SHLBNAME) simply to distinguish the regular lib build from the
185# profiling library build
186MPIO_LOPOBJECTS = $(MPIO_REAL_POBJECTS:.o=.lo)
187MPIO_EXTRA_LOPOBJECTS = $(MPIO_EXTRA_REAL_POBJECTS:.o=.lo)
188MPIO_TMP_LOPOBJECTS = ${MPIO_TMP_POBJECTS:.p=.sp}
189MPIO_EXTRA_LOPOBJECTS = ${MPIO_EXTRA_TMP_OBJECTS:.p=.sp}
190P$(SHLIBNAME).la: $(MPIO_TMP_LOPOBJECTS) $(MPIO_EXTRA_TMP_LOPOBJECTS)
191        $(AR) $(SHLIBNAME).la $(MPIO_LOPOBJECTS) $(MPIO_EXTRA_LOPOBJECTS)
192# --------------------------------------------------------------------------
193clean:
194        @rm -f *.o *.lo *.gcno *.gcda *.bb *.bbg
195        @rm -f ${srcdir}/*.gcno ${srcdir}/*.gcda
196        @rm -f ${srcdir}/*.bb ${srcdir}/*.bbg
197
198# MPICH2 documentation targets
199master_top_srcdir = @master_top_srcdir@
200DOCTEXT = @DOCTEXT@
201.c.man:
202        $(DOCTEXT) -mpath ../../../../man/man3 -ext 3 -heading MPI \
203                -quotefmt ${master_top_srcdir}/maint/docnotes $<
204.c.latex:
205        $(DOCTEXT) -latex -mpath ../../../../doc/refman  -heading MPI \
206                -quotefmt ${master_top_srcdir}/maint/docnotes $<
207.c.html:
208        $(DOCTEXT) -html -mpath ../../../../www/www3  -heading MPI \
209                -quotefmt ${master_top_srcdir}/maint/docnotes $<
210mandoc: ${mpi_sources:.c=.man}
211latexdoc: ${mpi_sources:.c=.latex}
212htmldoc: ${mpi_sources:.c=.html}
213
214tags: TAGS
215SOURCES = ${mpi_sources}
216HEADERS =
217TAGS:${HEADERS} ${SOURCES}
218        here=`cd ../../../.. && pwd` ; cd ${srcdir} && etags -o $$here/TAGS --append ${HEADERS} ${SOURCES}
219
220# Rules for the profiling objects
221_close.o: close.c
222        $(C_COMPILE) -c $(srcdir)/close.c -o _close.o
223_read.o: read.c
224        $(C_COMPILE) -c $(srcdir)/read.c -o _read.o
225_open.o: open.c
226        $(C_COMPILE) -c $(srcdir)/open.c -o _open.o
227_get_extent.o: get_extent.c
228        $(C_COMPILE) -c $(srcdir)/get_extent.c -o _get_extent.o
229_write.o: write.c
230        $(C_COMPILE) -c $(srcdir)/write.c -o _write.o
231_set_view.o: set_view.c
232        $(C_COMPILE) -c $(srcdir)/set_view.c -o _set_view.o
233_seek.o: seek.c
234        $(C_COMPILE) -c $(srcdir)/seek.c -o _seek.o
235_read_at.o: read_at.c
236        $(C_COMPILE) -c $(srcdir)/read_at.c -o _read_at.o
237_prealloc.o: prealloc.c
238        $(C_COMPILE) -c $(srcdir)/prealloc.c -o _prealloc.o
239_iread.o: iread.c
240        $(C_COMPILE) -c $(srcdir)/iread.c -o _iread.o
241_iwrite.o: iwrite.c
242        $(C_COMPILE) -c $(srcdir)/iwrite.c -o _iwrite.o
243_get_posn.o: get_posn.c
244        $(C_COMPILE) -c $(srcdir)/get_posn.c -o _get_posn.o
245_delete.o: delete.c
246        $(C_COMPILE) -c $(srcdir)/delete.c -o _delete.o
247_read_all.o: read_all.c
248        $(C_COMPILE) -c $(srcdir)/read_all.c -o _read_all.o
249_get_bytoff.o: get_bytoff.c
250        $(C_COMPILE) -c $(srcdir)/get_bytoff.c -o _get_bytoff.o
251_read_atall.o: read_atall.c
252        $(C_COMPILE) -c $(srcdir)/read_atall.c -o _read_atall.o
253_iread_at.o: iread_at.c
254        $(C_COMPILE) -c $(srcdir)/iread_at.c -o _iread_at.o
255_iwrite_at.o: iwrite_at.c
256        $(C_COMPILE) -c $(srcdir)/iwrite_at.c -o _iwrite_at.o
257_get_group.o: get_group.c
258        $(C_COMPILE) -c $(srcdir)/get_group.c -o _get_group.o
259_get_amode.o: get_amode.c
260        $(C_COMPILE) -c $(srcdir)/get_amode.c -o _get_amode.o
261_write_all.o: write_all.c
262        $(C_COMPILE) -c $(srcdir)/write_all.c -o _write_all.o
263_write_at.o: write_at.c
264        $(C_COMPILE) -c $(srcdir)/write_at.c -o _write_at.o
265_write_atall.o: write_atall.c
266        $(C_COMPILE) -c $(srcdir)/write_atall.c -o _write_atall.o
267_get_view.o: get_view.c
268        $(C_COMPILE) -c $(srcdir)/get_view.c -o _get_view.o
269_fsync.o: fsync.c
270        $(C_COMPILE) -c $(srcdir)/fsync.c -o _fsync.o
271_get_atom.o: get_atom.c
272        $(C_COMPILE) -c $(srcdir)/get_atom.c -o _get_atom.o
273_set_atom.o: set_atom.c
274        $(C_COMPILE) -c $(srcdir)/set_atom.c -o _set_atom.o
275_set_size.o: set_size.c
276        $(C_COMPILE) -c $(srcdir)/set_size.c -o _set_size.o
277_get_size.o: get_size.c
278        $(C_COMPILE) -c $(srcdir)/get_size.c -o _get_size.o
279_file_f2c.o: file_f2c.c
280        $(C_COMPILE) -c $(srcdir)/file_f2c.c -o _file_f2c.o
281_file_c2f.o: file_c2f.c
282        $(C_COMPILE) -c $(srcdir)/file_c2f.c -o _file_c2f.o
283_set_info.o: set_info.c
284        $(C_COMPILE) -c $(srcdir)/set_info.c -o _set_info.o
285_get_info.o: get_info.c
286        $(C_COMPILE) -c $(srcdir)/get_info.c -o _get_info.o
287_rd_atallb.o: rd_atallb.c
288        $(C_COMPILE) -c $(srcdir)/rd_atallb.c -o _rd_atallb.o
289_rd_atalle.o: rd_atalle.c
290        $(C_COMPILE) -c $(srcdir)/rd_atalle.c -o _rd_atalle.o
291_read_allb.o: read_allb.c
292        $(C_COMPILE) -c $(srcdir)/read_allb.c -o _read_allb.o
293_read_alle.o: read_alle.c
294        $(C_COMPILE) -c $(srcdir)/read_alle.c -o _read_alle.o
295_wr_atallb.o: wr_atallb.c
296        $(C_COMPILE) -c $(srcdir)/wr_atallb.c -o _wr_atallb.o
297_wr_atalle.o: wr_atalle.c
298        $(C_COMPILE) -c $(srcdir)/wr_atalle.c -o _wr_atalle.o
299_write_allb.o: write_allb.c
300        $(C_COMPILE) -c $(srcdir)/write_allb.c -o _write_allb.o
301_write_alle.o: write_alle.c
302        $(C_COMPILE) -c $(srcdir)/write_alle.c -o _write_alle.o
303_get_posn_sh.o: get_posn_sh.c
304        $(C_COMPILE) -c $(srcdir)/get_posn_sh.c -o _get_posn_sh.o
305_iread_sh.o: iread_sh.c
306        $(C_COMPILE) -c $(srcdir)/iread_sh.c -o _iread_sh.o
307_read_sh.o: read_sh.c
308        $(C_COMPILE) -c $(srcdir)/read_sh.c -o _read_sh.o
309_write_sh.o: write_sh.c
310        $(C_COMPILE) -c $(srcdir)/write_sh.c -o _write_sh.o
311_iwrite_sh.o: iwrite_sh.c
312        $(C_COMPILE) -c $(srcdir)/iwrite_sh.c -o _iwrite_sh.o
313_seek_sh.o: seek_sh.c
314        $(C_COMPILE) -c $(srcdir)/seek_sh.c -o _seek_sh.o
315_read_ord.o: read_ord.c
316        $(C_COMPILE) -c $(srcdir)/read_ord.c -o _read_ord.o
317_read_orde.o: read_orde.c
318        $(C_COMPILE) -c $(srcdir)/read_orde.c -o _read_orde.o
319_write_ordb.o: write_ordb.c
320        $(C_COMPILE) -c $(srcdir)/write_ordb.c -o _write_ordb.o
321_read_ordb.o: read_ordb.c
322        $(C_COMPILE) -c $(srcdir)/read_ordb.c -o _read_ordb.o
323_write_ord.o: write_ord.c
324        $(C_COMPILE) -c $(srcdir)/write_ord.c -o _write_ord.o
325_write_orde.o: write_orde.c
326        $(C_COMPILE) -c $(srcdir)/write_orde.c -o _write_orde.o
327_register_datarep.o: register_datarep.c
328        $(C_COMPILE) -c $(srcdir)/register_datarep.c -o _register_datarep.o
Note: See TracBrowser for help on using the browser.