Makefile.mingw 549 Bytes
Newer Older
1
2
PWD = $(shell pwd)
NVIDIA_SDK_INSTALL_PATH ?= /usr/local/cuda
3
AMDAPPSDKROOT ?= /opt/AMDAPP
4
CXX ?= i586-mingw32msvc-g++
Oliver Bock's avatar
Oliver Bock committed
5
ARCH ?= 32
6
7
8

TARGET = clfft_example.exe

9
CXXFLAGS += -O3 -Wall -g -I$(NVIDIA_SDK_INSTALL_PATH)/OpenCL/common/inc -I$(AMDAPPSDKROOT)/include -I../include -D_WIN32_WINDOWS=0x0410 -malign-double
10
LDFLAGS += -static-libgcc -static-libstdc++ $(PWD)/../lib/libclfft.a -lOpenCL -L../lib/amd/win$(ARCH)/2.6
11
12

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

clean:
	rm -f $(TARGET)