Skip to content
Snippets Groups Projects
Commit a7bd5410 authored by Oliver Bock's avatar Oliver Bock
Browse files

Merge branch 'rename_to_eclfft' into 'master'

renamed library and header to 'eclfft' to avoid conflicts with clFFT

See merge request !1
parents eafab99f 3bb1a461
No related branches found
No related tags found
1 merge request!1renamed library and header to 'eclfft' to avoid conflicts with clFFT
......@@ -19,3 +19,6 @@ win64:
clean:
$(MAKE) -C src clean
$(MAKE) -C example clean
install:
$(MAKE) -C src install
......@@ -19,8 +19,11 @@ The codebase contains a top-level Makefile that builds the library and the examp
* macos
* win32
* win64
* install
* clean
The `install` target uses the `PREFIX` variable, i.e. you should use `PREFIX=/some/path make install` or `make install PREFIX=/some/path`
# Usage
* Library
......
......@@ -13,6 +13,7 @@ endif
OBJECTS = fft_setup.o fft_execute.o fft_kernelstring.o
PREFIX ?= "."
$(TARGET): $(OBJECTS)
$(AR) rcs $(TARGET) $(OBJECTS)
......@@ -28,6 +29,11 @@ fft_execute.o: fft_execute.cpp ../include/clFFT.h fft_internal.h
fft_kernelstring.o: fft_kernelstring.cpp ../include/clFFT.h fft_internal.h
$(CXX) $(CXXFLAGS) -c fft_kernelstring.cpp
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
clean:
rm -f *.o
rm -f *.a
......@@ -9,6 +9,7 @@ CXXFLAGS += -O3 -Wall -g -I$(NVIDIA_SDK_INSTALL_PATH)/OpenCL/common/inc -I$(AMDA
OBJECTS = fft_setup.o fft_execute.o fft_kernelstring.o
PREFIX ?= "."
$(TARGET): $(OBJECTS)
$(AR) rcs $(TARGET) $(OBJECTS)
......@@ -24,6 +25,11 @@ fft_execute.o: fft_execute.cpp ../include/clFFT.h fft_internal.h
fft_kernelstring.o: fft_kernelstring.cpp ../include/clFFT.h fft_internal.h
$(CXX) $(CXXFLAGS) -c fft_kernelstring.cpp
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
clean:
rm -f *.o
rm -f *.a
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment