File: Makefile

package info (click to toggle)
khronos-opencl-headers 2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 356 kB
  • ctags: 3,151
  • sloc: ansic: 4,200; makefile: 26
file content (24 lines) | stat: -rw-r--r-- 833 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ifneq (,$(filter $(DEB_HOST_ARCH),i386 amd64))
ARCHFLAGS	+= -msse2 -msse
endif
CFLAGS		+= -I. $(OPENCLFLAGS) $(ARCHFLAGS)
CXXFLAGS	+= -std=c++11 -I. $(OPENCLFLAGS) $(ARCHFLAGS)

OPENCL_CLH_FLAGS_1_0 = -DCL_USE_DEPRECATED_OPENCL_1_0_APIS
OPENCL_CLH_FLAGS_1_1 = -DCL_USE_DEPRECATED_OPENCL_1_1_APIS
OPENCL_CLH_FLAGS_1_2 = -DCL_USE_DEPRECATED_OPENCL_1_2_APIS
OPENCL_CLH_FLAGS_2_0 = -DCL_USE_DEPRECATED_OPENCL_2_0_APIS

check:
	$(MAKE) compile_opencl_h
	$(MAKE) compile_opencl_h OPENCLFLAGS="$(OPENCL_CLH_FLAGS_1_0)"
	$(MAKE) compile_opencl_h OPENCLFLAGS="$(OPENCL_CLH_FLAGS_1_1)"
	$(MAKE) compile_opencl_h OPENCLFLAGS="$(OPENCL_CLH_FLAGS_1_2)"
	$(MAKE) compile_opencl_h OPENCLFLAGS="$(OPENCL_CLH_FLAGS_2_0)"

compile_opencl_h:
	$(CC) $(CPPFLAGS) $(CFLAGS) -c opencl_h.c
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c opencl_h.cpp

clean:
	$(RM) *.o