Makefile.subdir 5.35 KB
Newer Older
1 2
lib_LIBRARIES += src/libcodes-base.a 

3 4 5 6 7 8
BUILT_SOURCES += src/modelconfig/configparser.h \
                 src/modelconfig/configlex.h

EXTRA_DIST += src/iokernellang/codesparser.y.in \
              src/iokernellang/codeslexer.l \
              src/modelconfig/configparser.y \
Jonathan Jenkins's avatar
Jonathan Jenkins committed
9 10
              src/modelconfig/configlex.l \
			  src/modelconfig/README.txt \
Jonathan Jenkins's avatar
Jonathan Jenkins committed
11
			  src/util/templates/README.txt \
Jonathan Jenkins's avatar
Jonathan Jenkins committed
12 13 14 15 16
			  src/util/README.codes-mapping.txt \
			  src/util/README.lp-io.txt \
			  src/workload/README.codes-workload \
			  src/workload/TODO.codes-workload

17 18 19
#src/network-workload/README
#src/network-workload/offsets
#src/network-workload/scala-trace-data
Jonathan Jenkins's avatar
Jonathan Jenkins committed
20

21 22 23 24 25 26 27 28 29 30 31

PHONY: maintainer-clean-local
maintainer-clean-local::
	-rm -f src/modelconfig/configlex.h
	-rm -f src/modelconfig/configlex.c
	-rm -f src/modelconfig/configparser.h
	-rm -f src/modelconfig/configparser.c

src/modelconfig/configparser.h: src/modelconfig/configparser.y
src/modelconfig/configlex.h: src/modelconfig/configlex.l

32
#BUILT_SOURCES += src/iokernellang/codesparser.h \
33 34
#		 src/iokernellang/codesparser.c \
#                 src/iokernellang/codeslexer.h \
35
#                 src/iokernellang/codeslexer.h
36 37 38


#src/iokernellang/codesparser.y: src/iokernellang/codesparser.y.in Makefile
39

40
#src/iokernellang/codesparser.c src/iokernellang/codesparser.h: src/iokernellang/codesparser.y
41

42
#src/iokernellang/codeslexer.h: $(top_srcdir)/src/iokernellang/codeslexer.h
Jonathan Jenkins's avatar
Jonathan Jenkins committed
43
#mkdir -p codes
44
#cp $(top_srcdir)/src/iokernellang/codeslexer.h src/iokernellang/codeslexer.h
Philip Carns's avatar
Philip Carns committed
45

46 47
nobase_include_HEADERS = \
    codes/quickhash.h \
48 49 50 51 52
    codes/quicklist.h \
    codes/codes_mapping.h \
    codes/lp-type-lookup.h \
    codes/codes.h \
    codes/configuration.h \
53
    codes/lp-io.h \
54
	codes/lp-msg.h \
55
    codes/jenkins-hash.h \
56 57
    codes/codes-workload.h \
	codes/resource.h \
58
	codes/resource-lp.h \
59
	codes/local-storage-model.h \
60
	codes/rc-stack.h \
61
	codes/codes-jobmap.h \
62 63
	codes/codes-callback.h \
	codes/codes-mapping-context.h
Philip Carns's avatar
Philip Carns committed
64

Jonathan Jenkins's avatar
Jonathan Jenkins committed
65 66
#codes/codes-nw-workload.h

67
src_libcodes_base_a_SOURCES =  \
68
    src/iokernellang/codesparser.h \
69
    src/iokernellang/codesparser.c \
70
    src/iokernellang/codeslexer.h \
71 72
    src/iokernellang/codeslexer.c \
    src/iokernellang/codesImpl.c \
73 74 75 76
    src/iokernellang/CodesIOKernelContext.h \
    src/iokernellang/CodesIOKernelParser.h \
    src/iokernellang/CodesIOKernelTypes.h \
    src/iokernellang/CodesKernelHelpers.h \
77 78 79 80 81 82 83 84
    src/iokernellang/CodesKernelHelpers.c \
    src/modelconfig/configlex.c \
    src/modelconfig/configlex.h \
    src/modelconfig/configparser.c \
    src/modelconfig/configparser.h \
    src/modelconfig/configfile.c \
    src/modelconfig/configglue.h \
    src/modelconfig/configglue.c \
85
    src/modelconfig/configfile.h \
86 87 88 89
    src/modelconfig/configstore.h \
    src/modelconfig/configstore.c \
    src/modelconfig/configstoreadapter.h \
    src/modelconfig/configstoreadapter.c \
90
    src/modelconfig/txt_configfile.h \
Philip Carns's avatar
Philip Carns committed
91
    src/modelconfig/txt_configfile.c \
92
    src/modelconfig/configuration.c \
93 94 95
    src/util/codes_mapping.c \
    src/util/lp-type-lookup.c \
    src/util/lp-io.c \
96
	src/util/lp-msg.c \
97
    src/util/lookup3.c \
98 99
	src/util/resource.c \
	src/util/resource-lp.c \
100
	src/util/local-storage-model.c \
101 102 103
	src/util/codes-jobmap-method-impl.h \
	src/util/codes-jobmap.c \
	src/util/jobmap-impl/jobmap-dummy.c \
104
	src/util/jobmap-impl/jobmap-list.c\
105
	src/util/jobmap-impl/jobmap-identity.c\
106
	src/util/codes-mapping-context.c \
107
    src/workload/codes-workload.c \
Jonathan Jenkins's avatar
Jonathan Jenkins committed
108
    src/workload/methods/codes-iolang-wrkld.c \
109
    src/workload/methods/codes-checkpoint-wrkld.c \
110
    src/workload/methods/test-workload-method.c \
Jonathan Jenkins's avatar
Jonathan Jenkins committed
111
	src/workload/methods/codes-iomock-wrkld.c \
112 113
	codes/rc-stack.h \
	src/util/rc-stack.c
114

Jonathan Jenkins's avatar
Jonathan Jenkins committed
115
#codes/codes-nw-workload.h
116 117 118
#src/network-workload/codes-nw-workload.c
#src/network-workload/codes-nw-workload-method.h

119 120 121
# stealth testing of the template code (actual test is not run, just compiled as
# a program - Make error signifies test failure)
check_PROGRAMS += src/util/templates/lp_template_dummy_main
122
src_util_templates_lp_template_dummy_main_LDADD = $(testlib) ${ROSS_LIBS}
123 124 125 126 127 128
src_util_templates_lp_template_dummy_main_LDFLAGS = ${ROSS_LDFLAGS}
src_util_templates_lp_template_dummy_main_SOURCES = \
 src/util/templates/lp_template_dummy_main.c \
 src/util/templates/lp_template.c \
 src/util/templates/lp_template.h
# get rid of annoying unused function in template
129 130 131 132 133

bin_PROGRAMS += src/workload/codes-workload-dump

src_workload_codes_workload_dump_SOURCES = \
 src/workload/codes-workload-dump.c
134 135 136 137 138 139 140 141 142 143 144 145 146
src_workload_codes_workload_dump_LDADD = $(testlib) ${ROSS_LIBS}
src_workload_codes_workload_dump_LDFLAGS =  ${ROSS_LDFLAGS}

if USE_DARSHAN
src_workload_codes_workload_dump_LDFLAGS +=  ${DARSHAN_LDFLAGS}
src_workload_codes_workload_dump_LDADD += ${DARSHAN_LIBS}
endif

# TODO: does recorder need any specific linker flags??

if USE_DUMPI
src_workload_codes_workload_dump_LDADD += ${DUMPI_LIBS}
endif
147

148
#bin_PROGRAMS += src/network-workload/codes-nw-test
149

150 151 152 153
#src_network_workload_codes_nw_test_SOURCES = \
 #src/network-workload/codes-nw-test.c
#src_network_workload_codes_nw_test_LDADD = $(testlib) ${ROSS_LIBS} ${DUMPI_LIBS}
#src_network_workload_codes_nw_test_LDFLAGS =  ${ROSS_LDFLAGS}
154

155 156 157 158 159 160 161
#bin_PROGRAMS += src/network-workload/codes-dumpi-wrkld

#src_network_workload_codes_dumpi_wrkld_SOURCES = \
 src/network-workload/codes-dumpi-wrkld.c
#src_network_workload_codes_dumpi_wrkld_LDADD = $(testlib) ${ROSS_LIBS} ${DUMPI_LIBS}
#src_network_workload_codes_dumpi_wrkld_LDFLAGS =  ${ROSS_LDFLAGS}