Makefile.subdir 5.06 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
              src/modelconfig/configlex.l \
			  src/modelconfig/README.txt \
			  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

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
60
	codes/local-storage-model.h \
	codes/rc-stack.h
Philip Carns's avatar
Philip Carns committed
61

Jonathan Jenkins's avatar
Jonathan Jenkins committed
62
63
#codes/codes-nw-workload.h

64
src_libcodes_base_a_SOURCES =  \
65
    src/iokernellang/codesparser.h \
66
    src/iokernellang/codesparser.c \
67
    src/iokernellang/codeslexer.h \
68
69
    src/iokernellang/codeslexer.c \
    src/iokernellang/codesImpl.c \
70
71
72
73
    src/iokernellang/CodesIOKernelContext.h \
    src/iokernellang/CodesIOKernelParser.h \
    src/iokernellang/CodesIOKernelTypes.h \
    src/iokernellang/CodesKernelHelpers.h \
74
75
76
77
78
79
80
81
    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 \
82
    src/modelconfig/configfile.h \
83
84
85
86
    src/modelconfig/configstore.h \
    src/modelconfig/configstore.c \
    src/modelconfig/configstoreadapter.h \
    src/modelconfig/configstoreadapter.c \
87
    src/modelconfig/txt_configfile.h \
Philip Carns's avatar
Philip Carns committed
88
    src/modelconfig/txt_configfile.c \
89
    src/modelconfig/configuration.c \
90
91
92
    src/util/codes_mapping.c \
    src/util/lp-type-lookup.c \
    src/util/lp-io.c \
93
	src/util/lp-msg.c \
94
    src/util/lookup3.c \
95
96
	src/util/resource.c \
	src/util/resource-lp.c \
97
	src/util/local-storage-model.c \
98
    src/workload/codes-workload.c \
99
    src/workload/codes-workload-method.h \
Jonathan Jenkins's avatar
Jonathan Jenkins committed
100
    src/workload/methods/codes-iolang-wrkld.c \
101
    src/workload/methods/test-workload-method.c \
102
	src/workload/methods/codes-scala-trace-nw-wrkld.c \
103
104
	codes/rc-stack.h \
	src/util/rc-stack.c
105

Jonathan Jenkins's avatar
Jonathan Jenkins committed
106
#codes/codes-nw-workload.h
107
108
109
#src/network-workload/codes-nw-workload.c
#src/network-workload/codes-nw-workload-method.h

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

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

src_workload_codes_workload_dump_SOURCES = \
 src/workload/codes-workload-dump.c
125
126
127
128
129
130
131
132
133
134
135
136
137
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
138

139
#bin_PROGRAMS += src/network-workload/codes-nw-test
140

141
142
143
144
#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}
145

146
147
148
149
150
151
152
#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}