Makefile.subdir 5.18 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 61
	codes/rc-stack.h \
	codes/codes-jobmap.h
Philip Carns's avatar
Philip Carns committed
62

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

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

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

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

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

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

143
#bin_PROGRAMS += src/network-workload/codes-nw-test
144

145 146 147 148
#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}
149

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