Makefile.mingw 500 Bytes
Newer Older
1
2
PWD = $(shell pwd)
NVIDIA_SDK_INSTALL_PATH ?= /usr/local/cuda
3
AMDAPPSDKROOT ?= /opt/AMDAPP
4
CXX ?= i586-mingw32msvc-g++
5
6
7

TARGET = clfft_example.exe

8
9
CXXFLAGS += -O3 -Wall -g -I$(NVIDIA_SDK_INSTALL_PATH)/OpenCL/common/inc -I$(AMDAPPSDKROOT)/include -I../include -D_WIN32_WINDOWS=0x0410 -malign-double
LDFLAGS += $(PWD)/../lib/libclfft.a ../lib/amd/win32/2.5/OpenCL.lib
10
11

$(TARGET): main.cpp Makefile $(PWD)/../lib/libclfft.a
12
	$(CXX) $(CXXFLAGS) main.cpp $(LDFLAGS) -o $(TARGET)
13
14
15

clean:
	rm -f $(TARGET)