Source

mpi3-fortran / ompi / contrib / vt / vt / tools / vtunify / Makefile.common

Full commit
#HOOKS1SOURCES = \
#	$(VTUNIFYSRCDIR)/hooks/vt_unify_hooks_raw.h \
#	$(VTUNIFYSRCDIR)/hooks/vt_unify_hooks_raw.cc
#HOOKS1CXXFLAGS = -DVT_UNIFY_HOOKS_RAW
#HOOKS1INCLUDE =
#HOOKS1LIBRARY =
#HOOKS1DEPENDENCIES =

HOOKS2SOURCES = \
	$(VTUNIFYSRCDIR)/hooks/vt_unify_hooks_aevents.h \
	$(VTUNIFYSRCDIR)/hooks/vt_unify_hooks_aevents.cc
HOOKS2CXXFLAGS = -DVT_UNIFY_HOOKS_AEVENTS
HOOKS2INCLUDE =
HOOKS2LIBRARY =
HOOKS2DEPENDENCIES =

HOOKS3SOURCES = \
        $(VTUNIFYSRCDIR)/hooks/vt_unify_hooks_margins.h \
        $(VTUNIFYSRCDIR)/hooks/vt_unify_hooks_margins.cc
HOOKS3CXXFLAGS = -DVT_UNIFY_HOOKS_MARGINS
HOOKS3INCLUDE =
HOOKS3LIBRARY =
HOOKS3DEPENDENCIES =

HOOKS4SOURCES = \
	$(VTUNIFYSRCDIR)/hooks/vt_unify_hooks_msgmatch_snaps.h \
	$(VTUNIFYSRCDIR)/hooks/vt_unify_hooks_msgmatch_snaps.cc
HOOKS4CXXFLAGS = -DVT_UNIFY_HOOKS_MSGMATCH_SNAPS
if AMEXTERNOTF
HOOKS4INCLUDE =
HOOKS4LIBRARY = $(OTFLIBDIR) -lotfaux
HOOKS4DEPENDENCIES =
else
HOOKS4INCLUDE = -I$(top_srcdir)/extlib/otf/otfauxlib
HOOKS4LIBRARY = $(top_builddir)/extlib/otf/otfauxlib/libotfaux.la
HOOKS4DEPENDENCIES = $(HOOKS2LIBRARY)
endif

HOOKS5SOURCES = \
	$(VTUNIFYSRCDIR)/hooks/vt_unify_hooks_prof.h \
	$(VTUNIFYSRCDIR)/hooks/vt_unify_hooks_prof.cc
HOOKS5CXXFLAGS = -DVT_UNIFY_HOOKS_PROF
HOOKS5INCLUDE =
HOOKS5LIBRARY =
HOOKS5DEPENDENCIES =

#HOOKS6SOURCES = \
#       $(VTUNIFYSRCDIR)/hooks/vt_unify_hooks_tdb.h \
#       $(VTUNIFYSRCDIR)/hooks/vt_unify_hooks_tdb.cc
#HOOKS6CXXFLAGS = -DVT_UNIFY_HOOKS_TDB
#HOOKS6INCLUDE =
#HOOKS6LIBRARY =
#HOOKS6DEPENDENCIES =

#HOOKS7SOURCES =
#HOOKS7CXXFLAGS =
#HOOKS7INCLUDE =
#HOOKS7LIBRARY =
#HOOKS7DEPENDENCIES =

HOOKSSOURCES = \
	$(VTUNIFYSRCDIR)/hooks/vt_unify_hooks_base.h \
	$(VTUNIFYSRCDIR)/hooks/vt_unify_hooks_base.cc \
	$(HOOKS1SOURCES) $(HOOKS2SOURCES) $(HOOKS3SOURCES) $(HOOKS4SOURCES) $(HOOKS5SOURCES) $(HOOKS6SOURCES)

HOOKSCXXFLAGS = $(HOOKS1CXXFLAGS) $(HOOKS2CXXFLAGS) $(HOOKS3CXXFLAGS) $(HOOKS4CXXFLAGS) $(HOOKS5CXXFLAGS) $(HOOKS6CXXFLAGS)
HOOKSINCLUDE = $(HOOKS1INCLUDE) $(HOOKS2INCLUDE) $(HOOKS3INCLUDE) $(HOOKS4INCLUDE) $(HOOKS5INCLUDE) $(HOOKS6INCLUDE) $(HOOKS7INCLUDE)
HOOKSLIBRARY = $(HOOKS1LIBRARY) $(HOOKS2LIBRARY) $(HOOKS3LIBRARY) $(HOOKS4LIBRARY) $(HOOKS5LIBRARY) $(HOOKS6LIBRARY) $(HOOKS7LIBRARY)
HOOKSDEPENDENCIES = $(HOOKS1DEPENDENCIES) $(HOOKS2DEPENDENCIES) $(HOOKS3DEPENDENCIES) $(HOOKS4DEPENDENCIES) $(HOOKS5DEPENDENCIES) $(HOOKS6DEPENDENCIES) $(HOOKS7DEPENDENCIES)

if AMBUILDETIMESYNC
ETIMESYNCSOURCES = $(VTUNIFYSRCDIR)/vt_unify_esync.cc
ETIMESYNCCXXFLAGS = -DVT_ETIMESYNC
ETIMESYNCINCLUDE = $(CLAPACKINCDIR)
ETIMESYNCLIBRARY = $(CLAPACKLIBDIR) $(CLAPACKLIB)
else
ETIMESYNCSOURCES =
ETIMESYNCCXXFLAGS =
ETIMESYNCINCLUDE =
ETIMESYNCLIBRARY =
endif

if AMEXTERNOTF
OTFINCLUDE = $(OTFINCDIR)
OTFLIBRARY = $(OTFLIBDIR) $(OTFLIB)
OTFDEPENDENCIES =
else
OTFINCLUDE = -I$(top_srcdir)/extlib/otf/otflib -I$(top_builddir)/extlib/otf/otflib
OTFLIBRARY = $(top_builddir)/extlib/otf/otflib/libotf.la
OTFDEPENDENCIES = $(OTFLIBRARY)
endif

AM_CPPFLAGS = -I$(VTUNIFYSRCDIR) $(OTFINCLUDE) $(HOOKSINCLUDE) $(ETIMESYNCINCLUDE) -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)/vtlib

COMMONSOURCES = \
	$(VTUNIFYSRCDIR)/vt_unify.h \
	$(VTUNIFYSRCDIR)/vt_unify_defs.h \
	$(VTUNIFYSRCDIR)/vt_unify_defs_recs.h \
	$(VTUNIFYSRCDIR)/vt_unify_esync.h \
	$(VTUNIFYSRCDIR)/vt_unify_events_stats.h \
	$(VTUNIFYSRCDIR)/vt_unify_handlers.h \
	$(VTUNIFYSRCDIR)/vt_unify_hooks.h \
	$(VTUNIFYSRCDIR)/vt_unify_lvector.hh \
	$(VTUNIFYSRCDIR)/vt_unify_markers.h \
	$(VTUNIFYSRCDIR)/vt_unify_sync.h \
	$(VTUNIFYSRCDIR)/vt_unify_tkfac.h \
	$(VTUNIFYSRCDIR)/vt_unify_tkfac_scope.h \
	$(VTUNIFYSRCDIR)/vt_unify_tkfac_scope.hh \
	$(VTUNIFYSRCDIR)/vt_unify_usrcom.h \
	$(VTUNIFYSRCDIR)/vt_unify.cc \
	$(VTUNIFYSRCDIR)/vt_unify_defs.cc \
	$(VTUNIFYSRCDIR)/vt_unify_defs_recs.cc \
	$(ETIMESYNCSOURCES) \
	$(VTUNIFYSRCDIR)/vt_unify_events_stats.cc \
	$(VTUNIFYSRCDIR)/vt_unify_handlers.cc \
	$(VTUNIFYSRCDIR)/vt_unify_hooks.cc \
	$(VTUNIFYSRCDIR)/vt_unify_markers.cc \
	$(VTUNIFYSRCDIR)/vt_unify_sync.cc \
	$(VTUNIFYSRCDIR)/vt_unify_tkfac.cc \
	$(VTUNIFYSRCDIR)/vt_unify_usrcom.cc \
	$(HOOKSSOURCES)

if AMHAVEOMP
COMMONCXXFLAGS = $(OPENMP_CFLAGS) $(HOOKSCXXFLAGS) $(ETIMESYNCCXXFLAGS)
COMMONLDFLAGS = $(OPENMP_CFLAGS)
else
COMMONCXXFLAGS = $(HOOKSCXXFLAGS) $(ETIMESYNCCXXFLAGS)
COMMONLDFLAGS =
endif

COMMONLDADD = \
	$(top_builddir)/util/libvt_util.la \
	$(HOOKSLIBRARY) $(OTFLIBRARY) $(ETIMESYNCLIBRARY)

COMMONDEPENDENCIES = \
	$(top_builddir)/util/libvt_util.la \
	$(HOOKSDEPENDENCIES) $(OTFDEPENDENCIES)