Makefile 412 Bytes
Newer Older
1
2
3
PWD = $(shell pwd)
NVIDIA_SDK_INSTALL_PATH ?= /usr/local/cuda

4
5
TARGET = clfft_example

6
7
CXXFLAGS += -O3 -Wall -g -I$(NVIDIA_SDK_INSTALL_PATH)/OpenCL/common/inc -I../include
LDFLAGS += $(PWD)/../lib/libclfft.a
8
9
10
11

OS = $(shell uname -s)
ifeq ($(OS), Darwin)
	LDFLAGS += -framework OpenCL
12
13
else
	LDFLAGS += -lOpenCL
14
15
16
17
18
19
20
21
endif


$(TARGET): main.cpp
	g++ $(CXXFLAGS) $(LDFLAGS) -o $(TARGET) main.cpp

clean:
	rm -f $(TARGET)