Makefile.subdir 5.15 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
11
12
13
14
15
16
17
18
19
20
              src/modelconfig/configlex.l \
			  src/modelconfig/README.txt \
			  src/network-workload/README \
			  src/network-workload/offsets \
			  src/network-workload/scala-trace-data \
			  src/util/templates/README.txt
			  src/util/README.codes-mapping.txt \
			  src/util/README.lp-io.txt \
			  src/workload/README.codes-workload \
			  src/workload/TODO.codes-workload


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
33
34
35
#BUILT_SOURCES += codes/codesparser.h \
#		 src/iokernellang/codesparser.c \
#                 src/iokernellang/codeslexer.h \
#                 codes/codeslexer.h
36
37
38


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

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

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

46
47
48
49
50
51
52
53
54
55
56
57
58
nobase_include_HEADERS = \
    codes/CodesKernelHelpers.h \
    codes/CodesIOKernelContext.h \
    codes/CodesIOKernelParser.h \
    codes/CodesIOKernelTypes.h \
    codes/codeslexer.h \
    codes/txt_configfile.h \
    codes/tools.h \
    codes/codeslogging.h \
    codes/timeline.h \
    codes/codesparser.h \
    codes/quickhash.h \
    codes/configfile.h \
59
60
    codes/quicklist.h \
    codes/codes_mapping.h \
61
    codes/codes-nw-workload.h \
62
63
64
    codes/lp-type-lookup.h \
    codes/codes.h \
    codes/configuration.h \
65
    codes/lp-io.h \
66
	codes/lp-msg.h \
67
    codes/jenkins-hash.h \
68
69
    codes/codes-workload.h \
	codes/resource.h \
70
71
	codes/resource-lp.h \
	codes/local-storage-model.h
Philip Carns's avatar
Philip Carns committed
72

73
src_libcodes_base_a_SOURCES =  \
74
    codes/codesparser.h \
75
    src/iokernellang/codesparser.c \
76
    codes/codeslexer.h \
77
78
    src/iokernellang/codeslexer.c \
    src/iokernellang/codesImpl.c \
79
80
81
82
    codes/CodesIOKernelContext.h \
    codes/CodesIOKernelParser.h \
    codes/CodesIOKernelTypes.h \
    codes/CodesKernelHelpers.h \
83
84
85
86
87
88
89
90
    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 \
91
    codes/configfile.h \
92
93
94
95
    src/modelconfig/configstore.h \
    src/modelconfig/configstore.c \
    src/modelconfig/configstoreadapter.h \
    src/modelconfig/configstoreadapter.c \
96
    codes/txt_configfile.h \
Philip Carns's avatar
Philip Carns committed
97
    src/modelconfig/txt_configfile.c \
98
    codes/tools.h \
99
100
101
    src/util/tools.c \
    src/util/codes-callbacks.h \
    src/util/codes-callbacks.c \
102
103
104
105
    src/util/codes_mapping.c \
    src/util/lp-type-lookup.c \
    src/util/configuration.c \
    src/util/lp-io.c \
106
	src/util/lp-msg.c \
107
    src/util/lookup3.c \
108
109
	src/util/resource.c \
	src/util/resource-lp.c \
110
	src/util/local-storage-model.c \
111
    codes/codeslogging.h \
112
    src/logging/codeslogging.c \
113
    codes/timeline.h \
114
115
    src/logging/timeline.c \
    src/workload/codes-workload.c \
116
    src/workload/codes-workload-method.h \
117
    src/workload/codes-bgp-io-wrkld.c \
118
119
120
121
    src/workload/test-workload-method.c \
    codes/codes-nw-workload.h \
    src/network-workload/codes-nw-workload.c \
    src/network-workload/codes-nw-workload-method.h \
122
    src/network-workload/codes-scala-trace-nw-wrkld.c
123
124
125
126

# 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
127
src_util_templates_lp_template_dummy_main_LDADD = $(testlib) ${ROSS_LIBS}
128
129
130
131
132
133
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
134
135
136
137
138
139
140

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

src_workload_codes_workload_dump_SOURCES = \
 src/workload/codes-workload-dump.c
src_workload_codes_workload_dump_LDADD = $(testlib) ${DARSHAN_LIBS} ${ROSS_LIBS}
src_workload_codes_workload_dump_LDFLAGS =  ${DARSHAN_LDFLAGS} ${ROSS_LDFLAGS}
141
142
143
144
145

bin_PROGRAMS += src/network-workload/codes-nw-test

src_network_workload_codes_nw_test_SOURCES = \
 src/network-workload/codes-nw-test.c
146
src_network_workload_codes_nw_test_LDADD = $(testlib) ${ROSS_LIBS} ${DUMPI_LIBS}
147
148
src_network_workload_codes_nw_test_LDFLAGS =  ${ROSS_LDFLAGS}

149
150
151
152
153
154
155
#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}