mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
The maintenance of the conformance tests is moving to Github. This commit contains all the changes that have been done in Gitlab since the first public release of the conformance tests. Signed-off-by: Kevin Petit <kevin.petit@arm.com>
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
ifdef BUILD_WITH_ATF
|
|
ATF = -framework ATF
|
|
USE_ATF = -DUSE_ATF
|
|
endif
|
|
|
|
SRCS = main.c test_buffer_copy.c test_buffer_read.c test_buffer_write.c \
|
|
test_buffer_mem.c array_info.c test_buffer_map.c \
|
|
test_sub_buffers.cpp test_buffer_fill.c \
|
|
test_buffer_migrate.c test_image_migrate.c \
|
|
../../test_common/harness/errorHelpers.c \
|
|
../../test_common/harness/threadTesting.c \
|
|
../../test_common/harness/testHarness.c \
|
|
../../test_common/harness/kernelHelpers.c \
|
|
../../test_common/harness/conversions.c \
|
|
../../test_common/harness/mt19937.c \
|
|
../../test_common/harness/typeWrappers.cpp
|
|
|
|
|
|
|
|
DEFINES =
|
|
|
|
SOURCES = $(abspath $(SRCS))
|
|
LIBPATH += -L/System/Library/Frameworks/OpenCL.framework/Libraries
|
|
LIBPATH += -L.
|
|
FRAMEWORK = $(SOURCES)
|
|
HEADERS =
|
|
TARGET = test_buffers
|
|
INCLUDE =
|
|
COMPILERFLAGS = -c -Wall -g -O0 -Wshorten-64-to-32
|
|
CC = c++
|
|
CFLAGS = $(COMPILERFLAGS) ${RC_CFLAGS} ${USE_ATF} $(DEFINES:%=-D%)
|
|
CXXFLAGS = $(COMPILERFLAGS) ${RC_CFLAGS} ${USE_ATF} $(DEFINES:%=-D%)
|
|
LIBRARIES = -framework OpenCL -framework AppKit ${ATF}
|
|
|
|
OBJECTS := ${SOURCES:.c=.o}
|
|
OBJECTS := ${OBJECTS:.cpp=.o}
|
|
|
|
TARGETOBJECT =
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJECTS)
|
|
$(CC) $(RC_CFLAGS) $(OBJECTS) -o $@ $(LIBPATH) $(LIBRARIES)
|
|
|
|
clean:
|
|
rm -f $(TARGET) $(OBJECTS)
|
|
|
|
.DEFAULT:
|
|
@echo The target \"$@\" does not exist in Makefile.
|
|
|