-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
26 lines (20 loc) · 995 Bytes
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
bin_PROGRAMS = cl-gml cl-parse
cl_gml_SOURCES = src/main.cpp src/gml.cpp
cl_gml_DEPENDENCIES = kernel/gml.cl.pp
cl_parse_SOURCES = src/parse.l
AM_CPPFLAGS = -Idefs -Isrc
AM_CFLAGS = -std=c99
AM_CXXFLAGS = -std=c++11
LIBS += -lOpenCL
# HINT: Nvidia's OpenCL implementation chokes on our (valid) preprocessor metaprogramming.
kernel/gml.cl.pp : kernel/gml.cl defs/operators.def defs/pp.h defs/token.h defs/types.def
cpp -P -I defs -D __OPENCL_VERSION__ kernel/gml.cl kernel/gml.cl.pp
check_PROGRAMS = test-types test-math test-flow
TESTS = $(check_PROGRAMS)
test_types_SOURCES = test/types.cpp src/gml.cpp test/check_stack.cpp
test_types_LDFLAGS = -lboost_unit_test_framework
test_math_SOURCES = test/math.cpp src/gml.cpp test/check_stack.cpp
test_math_LDFLAGS = -lboost_unit_test_framework
test_flow_SOURCES = test/flow.cpp src/gml.cpp test/check_stack.cpp
test_flow_LDFLAGS = -lboost_unit_test_framework
EXTRA_DIST = defs/operators.def defs/pp.h defs/token.h defs/types.def kernel/gml.cl