File: Makefile

package info (click to toggle)
khronos-opencl-headers 2.0~svn31815-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 624 kB
  • sloc: cpp: 10,148; makefile: 45
file content (25 lines) | stat: -rw-r--r-- 865 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
25
ifneq (,$(filter $(DEB_HOST_ARCH),i386 amd64))
ARCHFLAGS	+= -msse2 -msse
endif
CFLAGS		+= -I. $(OPENCLFLAGS) $(ARCHFLAGS)
CXXFLAGS	+= -std=c++11 -I. $(OPENCLFLAGS) $(ARCHFLAGS)

check:
	$(MAKE) compile_opencl_h
	$(MAKE) compile_opencl_h OPENCLFLAGS=-DCL_USE_DEPRECATED_OPENCL_2_0_APIS
	$(MAKE) compile_opencl_h OPENCLFLAGS=-DCL_USE_DEPRECATED_OPENCL_1_1_APIS
	$(MAKE) compile_opencl_h OPENCLFLAGS=-DCL_USE_DEPRECATED_OPENCL_1_0_APIS
	$(MAKE) compile_cl_hpp
	$(MAKE) compile_cl_hpp OPENCLFLAGS=-DCL_USE_DEPRECATED_OPENCL_2_0_APIS
	$(MAKE) compile_cl_hpp OPENCLFLAGS=-DCL_USE_DEPRECATED_OPENCL_1_1_APIS
	$(MAKE) compile_cl_hpp OPENCLFLAGS=-DCL_USE_DEPRECATED_OPENCL_1_0_APIS

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

compile_cl_hpp:
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c cl_hpp.cpp

clean:
	$(RM) *.o