mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Conflicts: test_conformance/half/CMakeLists.txt test_conformance/half/Test_vStoreHalf.c test_conformance/half/cl_utils.c test_conformance/half/cl_utils.h Signed-off-by: Radek Szymanski <radek.szymanski@arm.com> Signed-off-by: Kevin Petit <kevin.petit@arm.com>
41 lines
931 B
Makefile
41 lines
931 B
Makefile
ifdef BUILD_WITH_ATF
|
|
ATF = -framework ATF
|
|
USE_ATF = -DUSE_ATF
|
|
endif
|
|
|
|
SRCS = main.c \
|
|
cl_utils.c \
|
|
Test_vLoadHalf.c \
|
|
Test_roundTrip.c \
|
|
Test_vStoreHalf.c \
|
|
../../test_common/harness/errorHelpers.c \
|
|
../../test_common/harness/kernelHelpers.c \
|
|
../../test_common/harness/mingw_compat.c \
|
|
../../test_common/harness/testHarness.c
|
|
|
|
SOURCES = $(abspath $(SRCS))
|
|
LIBPATH += -L/System/Library/Frameworks/OpenCL.framework/Libraries
|
|
LIBPATH += -L.
|
|
FRAMEWORK = $(SOURCES)
|
|
HEADERS =
|
|
TARGET = Test_half
|
|
INCLUDE =
|
|
COMPILERFLAGS = -c -Wall -g
|
|
CC = ${CROSS_COMPILE}g++
|
|
CFLAGS = $(COMPILERFLAGS) ${RC_CFLAGS} ${USE_ATF} $(INCLUDE)
|
|
LIBRARIES = -framework OpenCL ${ATF}
|
|
|
|
OBJECTS := ${SOURCES:.c=.o}
|
|
|
|
TARGETOBJECT =
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJECTS)
|
|
$(CC) $(INCLUDE) $(RC_CFLAGS) $(OBJECTS) -o $@ $(LIBPATH) $(LIBRARIES)
|
|
|
|
clean:
|
|
rm -f $(TARGET) $(OBJECTS)
|
|
|
|
.DEFAULT:
|
|
@echo The target \"$@\" does not exist in Makefile.
|