Commit 434038db authored by Oliver Bock's avatar Oliver Bock
Browse files

Added missing pieces for Linux/NVIDIA build

parent 8fe2fe82
PWD = $(shell pwd)
NVIDIA_SDK_INSTALL_PATH ?= /usr/local/cuda
TARGET = clfft_example
CXXFLAGS += -O3 -Wall -g -I../include
LDFLAGS += ../lib/libclfft.a
CXXFLAGS += -O3 -Wall -g -I$(NVIDIA_SDK_INSTALL_PATH)/OpenCL/common/inc -I../include
LDFLAGS += $(PWD)/../lib/libclfft.a
OS = $(shell uname -s)
ifeq ($(OS), Darwin)
LDFLAGS += -framework OpenCL
else
LDFLAGS += -lOpenCL
endif
......
NVIDIA_SDK_INSTALL_PATH ?= /usr/local/cuda
TARGET = libclfft.a
CXXFLAGS += -O3 -Wall -g -I../include
CXXFLAGS += -O3 -Wall -g -I$(NVIDIA_SDK_INSTALL_PATH)/OpenCL/common/inc -I../include
OS = $(shell uname -s)
ifeq ($(OS), Darwin)
CXXFLAGS += -I/System/Library/Frameworks
......@@ -25,4 +27,4 @@ fft_kernelstring.o: fft_kernelstring.cpp ../include/clFFT.h fft_internal.h
clean:
rm -f *.o
rm -f *.a
\ No newline at end of file
rm -f *.a
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment