- added example05 for clfft real in-place transform

- added readme to example04 for installing clfft
This commit is contained in:
Dakota St. Laurent
2015-08-03 18:38:14 -04:00
parent 14438e2355
commit 3af7ec6c3b
6 changed files with 235 additions and 15 deletions

37
Makefile Normal file
View File

@@ -0,0 +1,37 @@
CXX = gcc
# clFFT lib & inc
CLFFT_LIB = -lOpenCL -L./clFFT/build/package/lib64 -lclFFT
CLFFT_INCLUDE = -I./clFFT/build/package/include
# standard math library
CXXFLAGS = -c $(CLFFT_INCLUDE)
LDFLAGS = -lm $(CLFFT_LIB)
EXE = Example
all: ex04 ex05
# entire process
ex04: example04/build/main.o
@if [ ! -d "./example04/bin" ]; then mkdir ./example04/bin; fi
$(CXX) $< $(LDFLAGS) -o example04/bin/$(EXE)
# create object file (compile without linking)
example04/build/main.o: example04/main.c
@if [ ! -d "./example04/build" ]; then mkdir ./example04/build; fi
$(CXX) $(CXXFLAGS) $< -o $@
ex05: example05/build/main.o
@if [ ! -d "./example05/bin" ]; then mkdir ./example05/bin; fi
$(CXX) $< $(LDFLAGS) -o example05/bin/$(EXE)
# create object file (compile without linking)
example05/build/main.o: example05/main.c
@if [ ! -d "./example05/build" ]; then mkdir ./example05/build; fi
$(CXX) $(CXXFLAGS) $< -o $@
# cleaning (remove executables and what not)
clean:
$(RM) -r ./example04/build/ ./example04/bin/
$(RM) -r ./example05/build/ ./example05/bin/