Makefile.mingw 954 Bytes
Newer Older
1
NVIDIA_SDK_INSTALL_PATH ?= /usr/local/cuda
2
AMDAPPSDKROOT ?= /opt/AMDAPP
3
4
CXX ?= i586-mingw32msvc-g++
AR ?= i586-mingw32msvc-ar
5

Bernd Machenschalk's avatar
Bernd Machenschalk committed
6
TARGET = libeclfft.a
7

8
CXXFLAGS += -O3 -Wall -g -I$(NVIDIA_SDK_INSTALL_PATH)/OpenCL/common/inc -I$(AMDAPPSDKROOT)/include -I../include
9
10
11

OBJECTS = fft_setup.o fft_execute.o fft_kernelstring.o

Bernd Machenschalk's avatar
Bernd Machenschalk committed
12
PREFIX ?= "."
13
14

$(TARGET): $(OBJECTS)
15
	$(AR) rcs $(TARGET) $(OBJECTS)
16
17
18
19
	mkdir -p ../lib
	cp $(TARGET) ../lib/

fft_setup.o: fft_setup.cpp fft_internal.h fft_base_kernels.h
20
	$(CXX) $(CXXFLAGS) -c fft_setup.cpp
21
22
	
fft_execute.o: fft_execute.cpp ../include/clFFT.h fft_internal.h
23
	$(CXX) $(CXXFLAGS) -c fft_execute.cpp
24
25

fft_kernelstring.o: fft_kernelstring.cpp ../include/clFFT.h fft_internal.h
26
	$(CXX) $(CXXFLAGS) -c fft_kernelstring.cpp
27

Bernd Machenschalk's avatar
Bernd Machenschalk committed
28
29
30
31
32
install: $(TARGET) ../include/clFFT.h
	mkdir -p $(PREFIX)/lib $(PREFIX)/include
	cp  ../include/clFFT.h $(PREFIX)/include/eclfft.h
	cp  $(TARGET) $(PREFIX)/lib/libeclfft.a

33
34
35
clean:
	rm -f *.o
	rm -f *.a