summaryrefslogtreecommitdiff
path: root/utests/Makefile
blob: 6c257758af27b93370a5125573f2ff191ec569e4 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
TOP=..

DIR_CXXFLAGS=-fexceptions

include ../Makefile.defs

SUBDIRS=.

C_SRC=utest_error.c

CPP_SRC=\
	compiler_mandelbrot.cpp \
	compiler_mandelbrot_alternate.cpp \
	compiler_box_blur.cpp \
	compiler_box_blur_float.cpp \
	compiler_argument_structure.cpp \
	compiler_array0.cpp \
	compiler_array.cpp \
	compiler_array1.cpp \
	compiler_array2.cpp \
	compiler_array3.cpp \
	compiler_byte_scatter.cpp \
	compiler_copy_buffer.cpp \
	compiler_copy_buffer_row.cpp \
	compiler_function_argument0.cpp \
	compiler_function_argument1.cpp \
	compiler_function_argument.cpp \
	compiler_gather_register_file.cpp \
	compiler_gather_register_file0.cpp \
	compiler_gather_register_file1.cpp \
	compiler_if_else.cpp \
	compiler_lower_return0.cpp \
	compiler_lower_return1.cpp \
	compiler_lower_return2.cpp \
	compiler_obread.cpp \
	compiler_obwrite.cpp \
	compiler_region.cpp \
	compiler_region0.cpp \
	compiler_region1.cpp \
	compiler_short_scatter.cpp \
	compiler_sub_bytes.cpp \
	compiler_sub_shorts.cpp \
	compiler_uint2_copy.cpp \
	compiler_uint3_copy.cpp \
	compiler_uint3_unaligned_copy.cpp \
	compiler_unstructured_branch0.cpp \
	compiler_unstructured_branch1.cpp \
	compiler_unstructured_branch2.cpp \
	compiler_unstructured_branch3.cpp \
	compiler_vote_all.cpp \
	compiler_vote_any.cpp \
	compiler_write_only_bytes.cpp \
	compiler_write_only.cpp \
	compiler_write_only_shorts.cpp \
	compiler_switch.cpp \
	utest_assert.cpp \
	utest.cpp \
	utest_file_map.cpp \
	utest_helper.cpp

# unsupported for now
# compiler_local_slm.cpp
#compiler_argument_structure_indirect.cpp

OBJ=$(C_SRC:.c=.o) $(CPP_SRC:.cpp=.o)

all: utest_run runtime_flat_address_space

utest_run: $(OBJ) utest_run.o $(TOP)/$(LIBBASE)
	$(CXX) -o $@ $(OBJ) utest_run.o $(TOP)/$(LIBBASE)

runtime_flat_address_space: $(OBJ) runtime_flat_address_space.o
	$(CXX) -o $@ $(OBJ) runtime_flat_address_space.o $(TOP)/$(LIBBASE)

clean:
	rm -f $(OBJ)
	rm -f utest_run utest_run.o
	rm -f runtime_flat_address_space runtime_flat_address_space.o