|
Packit Service |
c5cf8c |
## -*- Mode: Makefile; -*-
|
|
Packit Service |
c5cf8c |
## vim: set ft=automake :
|
|
Packit Service |
c5cf8c |
##
|
|
Packit Service |
c5cf8c |
## (C) 2011 by Argonne National Laboratory.
|
|
Packit Service |
c5cf8c |
## See COPYRIGHT in top-level directory.
|
|
Packit Service |
c5cf8c |
##
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
# all of these routines are internal, nothing gets added to mpi_sources
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
if BUILD_DEBUGGER_DLL
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
noinst_HEADERS += src/mpi/debugger/mpich_dll_defs.h
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
# workaround the fact that autoconf is missing per-object flags by using a dummy
|
|
Packit Service |
c5cf8c |
# convenience library that isn't installed
|
|
Packit Service |
c5cf8c |
noinst_LTLIBRARIES += src/mpi/debugger/libdbginitdummy.la
|
|
Packit Service |
c5cf8c |
src_mpi_debugger_libdbginitdummy_la_SOURCES = src/mpi/debugger/dbginit.c
|
|
Packit Service |
c5cf8c |
src_mpi_debugger_libdbginitdummy_la_CFLAGS = -g
|
|
Packit Service |
c5cf8c |
pmpi_convenience_libs += $(top_builddir)/src/mpi/debugger/libdbginitdummy.la
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
lib_LTLIBRARIES += lib/libtvmpich.la
|
|
Packit Service |
c5cf8c |
# There is no static debugger interface library
|
|
Packit Service |
c5cf8c |
lib_libtvmpich_la_SOURCES = src/mpi/debugger/dll_mpich.c
|
|
Packit Service |
c5cf8c |
lib_libtvmpich_la_CFLAGS = -g
|
|
Packit Service |
c5cf8c |
lib_libtvmpich_la_LDFLAGS = -g $(ABIVERSIONFLAGS)
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
# tvtest builds a main program that uses the routines in dll_mpich to
|
|
Packit Service |
c5cf8c |
# access the internal structure of an MPICH program. This is only a partial
|
|
Packit Service |
c5cf8c |
# test, but it allows a developer to check out the basic functioning of
|
|
Packit Service |
c5cf8c |
# dll_mpich (but without loading it).
|
|
Packit Service |
c5cf8c |
#
|
|
Packit Service |
c5cf8c |
# NB: these tests can only be built *after* a "make install" step. They must be
|
|
Packit Service |
c5cf8c |
# built explicitly
|
|
Packit Service |
c5cf8c |
tvtest_objs = src/mpi/debugger/tvtest.o src/mpi/debugger/dbgstub.o
|
|
Packit Service |
c5cf8c |
src/mpi/debugger/tvtest: $(tvtest_objs)
|
|
Packit Service |
c5cf8c |
$(bindir)/mpicc -o $@ $(tvtest_objs) -ltvmpich
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
src/mpi/debugger/tvtest.o: src/mpi/debugger/tvtest.c
|
|
Packit Service |
c5cf8c |
$(bindir)/mpicc -c -o $@ $?
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
# no rule for dbgstub.o, it needs to be built by suffix rules in the usual
|
|
Packit Service |
c5cf8c |
# fashion because it needs direct access to MPICH internal headers
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
src/mpi/debugger/qdemo: src/mpi/debugger/qdemo.c
|
|
Packit Service |
c5cf8c |
$(bindir)/mpicc -o $@ $?
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
src/mpi/debugger/allcommdbg: src/mpi/debugger/allcommdbg.c
|
|
Packit Service |
c5cf8c |
$(bindir)/mpicc -o $@ $?
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
endif BUILD_DEBUGGER_DLL
|