Makefile.subdir 4.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 \
Philip Carns's avatar
Philip Carns committed
9
              src/modelconfig/configlex.l 
10
11
12
13
14
15
16
17
18
19
20

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

21
22
23
24
#BUILT_SOURCES += codes/codesparser.h \
#		 src/iokernellang/codesparser.c \
#                 src/iokernellang/codeslexer.h \
#                 codes/codeslexer.h
25
26
27


#src/iokernellang/codesparser.y: src/iokernellang/codesparser.y.in Makefile
28
29

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

Philip Carns's avatar
Philip Carns committed
31
32
33
34
codes/codeslexer.h: src/iokernellang/codeslexer.h
	mkdir -p codes
	cp src/iokernellang/codeslexer.h codes/codeslexer.h

35
36
37
38
39
40
41
42
43
44
45
46
47
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 \
48
49
    codes/quicklist.h \
    codes/codes_mapping.h \
50
    codes/codes-nw-workload.h \
51
52
53
    codes/lp-type-lookup.h \
    codes/codes.h \
    codes/configuration.h \
54
    codes/lp-io.h \
55
	codes/lp-msg.h \
56
57
    codes/jenkins-hash.h \
    codes/codes-workload.h
Philip Carns's avatar
Philip Carns committed
58

59
src_libcodes_base_a_SOURCES =  \
60
    codes/codesparser.h \
61
    src/iokernellang/codesparser.c \
62
    codes/codeslexer.h \
63
64
    src/iokernellang/codeslexer.c \
    src/iokernellang/codesImpl.c \
65
66
67
68
    codes/CodesIOKernelContext.h \
    codes/CodesIOKernelParser.h \
    codes/CodesIOKernelTypes.h \
    codes/CodesKernelHelpers.h \
69
70
71
72
73
74
75
76
    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 \
77
    codes/configfile.h \
78
79
80
81
    src/modelconfig/configstore.h \
    src/modelconfig/configstore.c \
    src/modelconfig/configstoreadapter.h \
    src/modelconfig/configstoreadapter.c \
82
    codes/txt_configfile.h \
Philip Carns's avatar
Philip Carns committed
83
    src/modelconfig/txt_configfile.c \
84
    codes/tools.h \
85
86
87
    src/util/tools.c \
    src/util/codes-callbacks.h \
    src/util/codes-callbacks.c \
88
89
90
91
    src/util/codes_mapping.c \
    src/util/lp-type-lookup.c \
    src/util/configuration.c \
    src/util/lp-io.c \
92
	src/util/lp-msg.c \
93
    src/util/lookup3.c \
94
    codes/codeslogging.h \
95
    src/logging/codeslogging.c \
96
    codes/timeline.h \
97
98
    src/logging/timeline.c \
    src/workload/codes-workload.c \
99
    src/workload/codes-workload-method.h \
100
    src/workload/codes-bgp-io-wrkld.c \
101
102
103
104
105
    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 \
    src/network-workload/codes-scala-trace-nw-wrkld.c
106
107
108
109

# 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
110
111
testlib = src/libcodes-base.a
src_util_templates_lp_template_dummy_main_LDADD = $(testlib) ${ROSS_LIBS}
112
113
114
115
116
117
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
118
119
120
121
122
123
124

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}
125
126
127
128
129
130
131
132

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

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