Makefile 801 Bytes
Newer Older
1
NVIDIA_SDK_INSTALL_PATH ?= /usr/local/cuda
2
ATISTREAMSDKROOT ?= /usr/local/ati
3

4
5
TARGET = libclfft.a

6
CXXFLAGS += -O3 -Wall -g -I$(NVIDIA_SDK_INSTALL_PATH)/OpenCL/common/inc -I$(ATISTREAMSDKROOT)/include -I../include
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
OS = $(shell uname -s)
ifeq ($(OS), Darwin)
	CXXFLAGS += -I/System/Library/Frameworks
endif

OBJECTS = fft_setup.o fft_execute.o fft_kernelstring.o


$(TARGET): $(OBJECTS)
	ar rcs $(TARGET) $(OBJECTS)
	mkdir -p ../lib
	cp $(TARGET) ../lib/

fft_setup.o: fft_setup.cpp fft_internal.h fft_base_kernels.h
	g++ $(CXXFLAGS) -c fft_setup.cpp
	
fft_execute.o: fft_execute.cpp ../include/clFFT.h fft_internal.h
	g++ $(CXXFLAGS) -c fft_execute.cpp

fft_kernelstring.o: fft_kernelstring.cpp ../include/clFFT.h fft_internal.h
	g++ $(CXXFLAGS) -c fft_kernelstring.cpp

clean:
	rm -f *.o
31
	rm -f *.a