Makefile.am 2.46 KB
Newer Older
1 2 3 4 5 6 7
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4

bin_PROGRAMS =
bin_SCRIPTS =
noinst_LIBRARIES =
noinst_PROGRAMS =
8
lib_LTLIBRARIES =
9 10 11 12 13 14 15
noinst_HEADERS =
TESTS =
check_PROGRAMS =
EXTRA_PROGRAMS =
CLEANFILES = $(bin_SCRIPTS)
EXTRA_DIST =
BUILT_SOURCES =
16 17
AM_LDFLAGS =

18

Philip Carns's avatar
Philip Carns committed
19 20
# pkgconfig files
pkgconfigdir = $(libdir)/pkgconfig
21
pkgconfig_DATA = maint/codes.pc
Philip Carns's avatar
Philip Carns committed
22
$(pkgconfig_DATA): config.status
23

24
EXTRA_DIST += \
Jonathan Jenkins's avatar
Jonathan Jenkins committed
25
  prepare.sh COPYRIGHT configure.ac uc-codes.cfg reformat.sh \
26 27
  misc/README misc/ptrn_loggp-2.4.6.patch CONTRIBUTORS.md \
  README.md
28

29
AM_CPPFLAGS = -I$(top_srcdir)/src ${ROSS_CFLAGS} 
30

31
AM_CFLAGS =
32 33 34

AM_CXXFLAGS = $(AM_CFLAGS)

35
LDADD = $(lib_LTLIBRARIES) $(ROSS_LIBS)
36

37 38
include Make.rules

39
include $(top_srcdir)/scripts/Makefile.subdir
40
include $(top_srcdir)/src/Makefile.subdir
41
include $(top_srcdir)/tests/Makefile.subdir
42
include $(top_srcdir)/doc/Makefile.subdir
Philip Carns's avatar
Philip Carns committed
43

Matthieu Dorier's avatar
Matthieu Dorier committed
44 45 46 47 48 49
if USE_DEBUG
AM_CPPFLAGS += -g
AM_CFLAGS   += -g
AM_CXXFLAGS += -g
endif

50
if USE_DARSHAN
51
AM_CPPFLAGS += ${DARSHAN_CFLAGS} -DUSE_DARSHAN=1
52
src_libcodes_la_SOURCES += src/workload/methods/codes-darshan3-io-wrkld.c
53
LDADD += ${DARSHAN_LIBS}
54
TESTS += tests/workload/darshan-dump.sh
55
endif
56 57 58

if USE_RECORDER
AM_CPPFLAGS += ${RECORDER_CPPFLAGS}
59
src_libcodes_la_SOURCES += src/workload/methods/codes-recorder-io-wrkld.c
60
endif
61

62 63
if USE_ONLINE
AM_CPPFLAGS += ${ARGOBOTS_CFLAGS} ${SWM_CFLAGS} -DUSE_ONLINE=1
64 65 66 67
LDADD += ${ARGOBOTS_LIBS}
if USE_SWM
AM_CPPFLAGS += -DUSE_SWM=1
LDADD += ${SWM_LIBS}
68
src_libcodes_la_SOURCES += src/workload/methods/codes-online-comm-wrkld.C
69
endif
70
if USE_CONC
71 72
src_libcodes_la_SOURCES += src/workload/methods/codes-conc-online-comm-wrkld.C
AM_CPPFLAGS += ${CONCEPTUAL_CFLAGS} -DUSE_CONC=1
73 74
LDADD += ${CONCEPTUAL_LIBS}
endif
75 76
endif

77 78
if USE_DUMPI
AM_CPPFLAGS += ${DUMPI_CFLAGS} -DUSE_DUMPI=1
79
src_libcodes_la_SOURCES += src/workload/methods/codes-dumpi-trace-nw-wrkld.c
80 81 82 83 84
TESTS += tests/modelnet-test-dragonfly-traces.sh \
		 tests/modelnet-test-dragonfly-custom-traces.sh \
		 tests/modelnet-test-slimfly-traces.sh	\
		 tests/modelnet-test-torus-traces.sh
check_PROGRAMS += src/network-workloads/model-net-mpi-replay
85 86
if USE_CORTEX
if USE_PYTHON
87 88 89
if USE_CORTEX_PYTHON
AM_CPPFLAGS += ${CORTEX_PYTHON_CFLAGS} -DENABLE_CORTEX_PYTHON=1
LDADD += ${CORTEX_PYTHON_LIBS}
90 91
AM_CPPFLAGS += ${PYTHON_CFLAGS}
LDADD += ${PYTHON_LIBS}
92
endif
93
endif
94 95
AM_CPPFLAGS += ${CORTEX_CFLAGS} -DENABLE_CORTEX=1
LDADD += ${CORTEX_LIBS}
96
endif
97
LDADD += ${DUMPI_LIBS}
98 99
endif

100 101 102 103
if USE_RDAMARIS
AM_CPPFLAGS += ${ROSS_Damaris_CFLAGS} -DUSE_RDAMARIS=1
LDADD += ${ROSS_Damaris_LIBS}
endif