Commit fced08b7 authored by Jonathan Jenkins's avatar Jonathan Jenkins

incorporate example programs into regular builds

parent 9afa57d1
docs_general = doc/BUILD_STEPS doc/GETTING_STARTED doc/RELEASE_NOTES
noinst_PROGRAMS += \
doc/example/example \
doc/example_heterogeneous/example
docs_best_practices = \
doc/acmsmall.cls \
doc/algorithm.sty \
doc/algorithmic.sty \
doc/codes-best-practices.tex \
doc/Makefile
doc_example_example_SOURCES = doc/example/example.c
doc_example_heterogeneous_example_SOURCES = doc/example_heterogeneous/example.c
docs_examples = \
doc/example/example.c \
doc/example/example.conf \
doc/example/Makefile \
doc/example_heterogeneous/example.c \
doc/example_heterogeneous/example.conf \
doc/example_heterogeneous/example_torus.conf \
doc/example_heterogeneous/Makefile \
doc/example_heterogeneous/README
docs_workload = \
doc/workload/example.kernel.txt \
doc/workload/meta.txt
EXTRA_DIST += $(docs_general) $(docs_best_practices) $(docs_examples) \
$(docs_workload)
EXTRA_DIST += \
doc/BUILD_STEPS \
doc/GETTING_STARTED \
doc/RELEASE_NOTES \
doc/acmsmall.cls \
doc/algorithm.sty \
doc/algorithmic.sty \
doc/codes-best-practices.tex \
doc/Makefile.best-practice \
doc/example/example.conf \
doc/example_heterogeneous/example.conf \
doc/example_heterogeneous/example_torus.conf \
doc/example_heterogeneous/README \
doc/workload/example.kernel.txt \
doc/workload/meta.txt
ifndef CODESBASE
$(error CODESBASE is undefined, see README.txt)
endif
ifndef CODESNET
$(error CODESNET is undefined, see README.txt)
endif
ifndef ROSS
$(error ROSS is undefined, see README.txt)
endif
PKG_PATH = $(ROSS)/lib/pkgconfig:$(CODESBASE)/lib/pkgconfig:$(CODESNET)/lib/pkgconfig
override CPPFLAGS += $(shell PKG_CONFIG_PATH=$(PKG_PATH) pkg-config --cflags codes-net codes-base ross)
LDFLAGS += $(shell PKG_CONFIG_PATH=$(PKG_PATH) pkg-config --libs-only-L ross codes-net codes-base ross)
LDLIBS = $(shell PKG_CONFIG_PATH=$(PKG_PATH) pkg-config --libs-only-l ross codes-net codes-base ross)
CC = mpicc
example: example.c
clean:
rm -f example
ifndef CODESBASE
$(error CODESBASE is undefined, see README.txt)
endif
ifndef CODESNET
$(error CODESNET is undefined, see README.txt)
endif
ifndef ROSS
$(error ROSS is undefined, see README.txt)
endif
PKG_PATH = $(ROSS)/lib/pkgconfig:$(CODESBASE)/lib/pkgconfig:$(CODESNET)/lib/pkgconfig
override CPPFLAGS += $(shell PKG_CONFIG_PATH=$(PKG_PATH) pkg-config --cflags codes-net codes-base ross)
LDFLAGS += $(shell PKG_CONFIG_PATH=$(PKG_PATH) pkg-config --libs-only-L ross codes-net codes-base ross)
LDLIBS = $(shell PKG_CONFIG_PATH=$(PKG_PATH) pkg-config --libs-only-l ross codes-net codes-base ross)
CC = mpicc
example: example.c
clean:
rm -f example
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment