[clinfo] 26/55: Add NMAKE makefile
Andreas Beckmann
anbe at moszumanska.debian.org
Sat Jan 13 14:40:00 UTC 2018
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch master
in repository clinfo.
commit ec871f7b78b1c612d00429535202c362378b4d34
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date: Fri Feb 10 11:16:26 2017 +0100
Add NMAKE makefile
Give a pretense of support for building the thing on Windows, at least
from the command-line. Also include a 'make.cmd' batch file that calls
NMAKE with the correct parameters.
---
Makefile.win | 36 ++++++++++++++++++++++++++++++++++++
make.cmd | 1 +
2 files changed, 37 insertions(+)
diff --git a/Makefile.win b/Makefile.win
new file mode 100644
index 0000000..b316a5b
--- /dev/null
+++ b/Makefile.win
@@ -0,0 +1,36 @@
+# TODO FIXME find a better way to detect the directory to use
+# for OpenCL development files
+!IF "$(OPENCLDIR)" == ""
+OPENCLDIR = $(AMDAPPSDKROOT)
+!ENDIF
+!IF "$(OPENCLDIR)" == ""
+OPENCLDIR = $(MAKEDIR)
+!ENDIF
+!IF "$(OPENCLDIR)" == ""
+OPENCLDIR = .
+!ENDIF
+!MESSAGE OpenCL dir: $(OPENCLDIR)
+
+
+HDR = src/error.h \
+ src/ext.h \
+ src/fmtmacros.h \
+ src/memory.h \
+ src/ms_support.h \
+ src/strbuf.h
+
+CFLAGS = /GL /Ox /W4 /Zi /I"$(OPENCLDIR)\include" /nologo
+LIBS = libOpenCL.a
+LINKOPTS = /LTCG /LIBPATH:"$(OPENCLDIR)\lib" /LIBPATH:"$(OPENCLDIR)\lib\x86" /LIBPATH:"$(OPENCLDIR)\lib\x86_64" /LIBPATH:"$(OPENCLDIR)\lib\x86_amd64" /LIBPATH:"$(OPENCLDIR)\lib\amd64" /nologo
+
+clinfo.exe: clinfo.obj
+ link $(LINKOPTS) $(LIBS) clinfo.obj /out:clinfo.exe
+
+clinfo.obj: src/clinfo.c $(HDR)
+ $(CC) $(CFLAGS) /c src/clinfo.c /Foclinfo.obj
+
+clean:
+ del /F /Q clinfo.exe clinfo.obj
+
+.PHONY: clean
+
diff --git a/make.cmd b/make.cmd
new file mode 100644
index 0000000..0322f93
--- /dev/null
+++ b/make.cmd
@@ -0,0 +1 @@
+nmake /F Makefile.win /nologo %*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/clinfo.git
More information about the Pkg-opencl-commits
mailing list