Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libclfft
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maximillian Bensch
libclfft
Commits
6051f04e
Commit
6051f04e
authored
14 years ago
by
Oliver Bock
Browse files
Options
Downloads
Patches
Plain Diff
Added Makefiles for Win32 cross-compilation on Linux (using MinGW)
parent
faf03ec9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
example/Makefile.mingw
+14
-0
14 additions, 0 deletions
example/Makefile.mingw
src/Makefile.mingw
+27
-0
27 additions, 0 deletions
src/Makefile.mingw
with
41 additions
and
0 deletions
example/Makefile.mingw
0 → 100644
+
14
−
0
View file @
6051f04e
PWD
=
$(
shell
pwd
)
NVIDIA_SDK_INSTALL_PATH
?=
/usr/local/cuda
ATISTREAMSDKROOT
?=
/usr/local/ati
TARGET
=
clfft_example.exe
CXXFLAGS
+=
-O3
-Wall
-g
-I
$(
NVIDIA_SDK_INSTALL_PATH
)
/OpenCL/common/inc
-I
$(
ATISTREAMSDKROOT
)
/include
-I
../include
-D_WIN32_WINDOWS
=
0x0410
-malign-double
LDFLAGS
+=
$(
PWD
)
/../lib/libclfft.a ../lib/amd/win32/2.3/OpenCL.lib
$(TARGET)
:
main.cpp Makefile $(PWD)/../lib/libclfft.a
i586-mingw32msvc-g++
$(
CXXFLAGS
)
main.cpp
$(
LDFLAGS
)
-o
$(
TARGET
)
clean
:
rm
-f
$(
TARGET
)
This diff is collapsed.
Click to expand it.
src/Makefile.mingw
0 → 100644
+
27
−
0
View file @
6051f04e
NVIDIA_SDK_INSTALL_PATH
?=
/usr/local/cuda
ATISTREAMSDKROOT
?=
/usr/local/ati
TARGET
=
libclfft.a
CXXFLAGS
+=
-O3
-Wall
-g
-I
$(
NVIDIA_SDK_INSTALL_PATH
)
/OpenCL/common/inc
-I
$(
ATISTREAMSDKROOT
)
/include
-I
../include
OBJECTS
=
fft_setup.o fft_execute.o fft_kernelstring.o
$(TARGET)
:
$(OBJECTS)
i586-mingw32msvc-ar rcs
$(
TARGET
)
$(
OBJECTS
)
mkdir
-p
../lib
cp
$(
TARGET
)
../lib/
fft_setup.o
:
fft_setup.cpp fft_internal.h fft_base_kernels.h
i586-mingw32msvc-g++
$(
CXXFLAGS
)
-c
fft_setup.cpp
fft_execute.o
:
fft_execute.cpp ../include/clFFT.h fft_internal.h
i586-mingw32msvc-g++
$(
CXXFLAGS
)
-c
fft_execute.cpp
fft_kernelstring.o
:
fft_kernelstring.cpp ../include/clFFT.h fft_internal.h
i586-mingw32msvc-g++
$(
CXXFLAGS
)
-c
fft_kernelstring.cpp
clean
:
rm
-f
*
.o
rm
-f
*
.a
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment