Makefile.subdir 5.23 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
	codes/local-storage-model.h \
60
	codes/rc-stack.h \
61 62
	codes/codes-jobmap.h \
	codes/codes-callback.h
Philip Carns's avatar
Philip Carns committed
63

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

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

Jonathan Jenkins's avatar
Jonathan Jenkins committed
112
#codes/codes-nw-workload.h
113 114 115
#src/network-workload/codes-nw-workload.c
#src/network-workload/codes-nw-workload-method.h

116 117 118
# 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
119
src_util_templates_lp_template_dummy_main_LDADD = $(testlib) ${ROSS_LIBS}
120 121 122 123 124 125
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
126 127 128 129 130

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

src_workload_codes_workload_dump_SOURCES = \
 src/workload/codes-workload-dump.c
131 132 133 134 135 136 137 138 139 140 141 142 143
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
144

145
#bin_PROGRAMS += src/network-workload/codes-nw-test
146

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

152 153 154 155 156 157 158
#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}