Commit 52add4a0 authored by Oliver Bock's avatar Oliver Bock
Browse files

Added MinGW 64 bit build target

parent 3a684d72
...@@ -10,7 +10,11 @@ macos: ...@@ -10,7 +10,11 @@ macos:
win32: win32:
$(MAKE) -C src -f Makefile.mingw $(MAKE) -C src -f Makefile.mingw
$(MAKE) -C example -f Makefile.mingw ARCH=32 $(MAKE) -C example -f Makefile.mingw
win64:
$(MAKE) -C src -f Makefile.mingw
ARCH=64 $(MAKE) -C example -f Makefile.mingw
clean: clean:
$(MAKE) -C src clean $(MAKE) -C src clean
......
...@@ -2,11 +2,12 @@ PWD = $(shell pwd) ...@@ -2,11 +2,12 @@ PWD = $(shell pwd)
NVIDIA_SDK_INSTALL_PATH ?= /usr/local/cuda NVIDIA_SDK_INSTALL_PATH ?= /usr/local/cuda
AMDAPPSDKROOT ?= /opt/AMDAPP AMDAPPSDKROOT ?= /opt/AMDAPP
CXX ?= i586-mingw32msvc-g++ CXX ?= i586-mingw32msvc-g++
ARCH ?= 32
TARGET = clfft_example.exe TARGET = clfft_example.exe
CXXFLAGS += -O3 -Wall -g -I$(NVIDIA_SDK_INSTALL_PATH)/OpenCL/common/inc -I$(AMDAPPSDKROOT)/include -I../include -D_WIN32_WINDOWS=0x0410 -malign-double 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.6/OpenCL.lib LDFLAGS += $(PWD)/../lib/libclfft.a ../lib/amd/win$(ARCH)/2.6/OpenCL.lib
$(TARGET): main.cpp Makefile $(PWD)/../lib/libclfft.a $(TARGET): main.cpp Makefile $(PWD)/../lib/libclfft.a
$(CXX) $(CXXFLAGS) main.cpp $(LDFLAGS) -o $(TARGET) $(CXX) $(CXXFLAGS) main.cpp $(LDFLAGS) -o $(TARGET)
......
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