Makefile.am 1.68 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 16
noinst_HEADERS =
TESTS =
check_PROGRAMS =
EXTRA_PROGRAMS =
CLEANFILES = $(bin_SCRIPTS)
EXTRA_DIST =
BUILT_SOURCES =

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

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

27
AM_CPPFLAGS = -I$(top_srcdir)/src ${ROSS_CFLAGS} 
28

29
AM_CFLAGS =
30 31 32

AM_CXXFLAGS = $(AM_CFLAGS)

33
LDADD = $(lib_LTLIBRARIES) $(ROSS_LIBS)
34

35 36
include Make.rules

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

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

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

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

if USE_DUMPI
AM_CPPFLAGS += ${DUMPI_CFLAGS} -DUSE_DUMPI=1
62
src_libcodes_la_SOURCES += src/workload/methods/codes-dumpi-trace-nw-wrkld.c
63 64
if USE_CORTEX
if USE_PYTHON
65 66 67
if USE_CORTEX_PYTHON
AM_CPPFLAGS += ${CORTEX_PYTHON_CFLAGS} -DENABLE_CORTEX_PYTHON=1
LDADD += ${CORTEX_PYTHON_LIBS}
68 69
AM_CPPFLAGS += ${PYTHON_CFLAGS}
LDADD += ${PYTHON_LIBS}
70
endif
71
endif
72 73
AM_CPPFLAGS += ${CORTEX_CFLAGS} -DENABLE_CORTEX=1
LDADD += ${CORTEX_LIBS}
74
endif
75
LDADD += ${DUMPI_LIBS}
76 77
endif