Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oliver Behnke
libclfft
Commits
3bb1a461
Commit
3bb1a461
authored
Apr 23, 2018
by
Bernd Machenschalk
Browse files
add a target 'install'
- this installs the header in $PREFIX/include/eclfft and the lib in $PREFIX/lib/eclfft.a
parent
eafab99f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
3bb1a461
...
...
@@ -19,3 +19,6 @@ win64:
clean
:
$(MAKE)
-C
src clean
$(MAKE)
-C
example clean
install
:
$(MAKE)
-C
src
install
README.md
View file @
3bb1a461
...
...
@@ -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
...
...
src/Makefile
View file @
3bb1a461
...
...
@@ -13,6 +13,7 @@ endif
OBJECTS
=
fft_setup.o fft_execute.o fft_kernelstring.o
PREFIX
?=
"."
$(TARGET)
:
$(OBJECTS)
$(AR)
rcs
$(TARGET)
$(OBJECTS)
...
...
@@ -21,13 +22,18 @@ $(TARGET): $(OBJECTS)
fft_setup.o
:
fft_setup.cpp fft_internal.h fft_base_kernels.h
$(CXX)
$(CXXFLAGS)
-c
fft_setup.cpp
fft_execute.o
:
fft_execute.cpp ../include/clFFT.h fft_internal.h
$(CXX)
$(CXXFLAGS)
-c
fft_execute.cpp
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
src/Makefile.mingw
View file @
3bb1a461
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment