summaryrefslogtreecommitdiffstats
path: root/obsolete.make-nb/Makefile
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-01-25 15:13:06 +0100
committerSven Gothel <[email protected]>2014-01-25 15:13:06 +0100
commit5c5f3b4785835b8abf53474b0c9dc248d1b8dab6 (patch)
treef608da51d3ea2f0726f6d8475216020351a3b3a5 /obsolete.make-nb/Makefile
parentf51d6456ab2196bf8ce7d6b3c7ac6d71e9e0108b (diff)
Bug 884: Move obsolete NB based build files to 'obsolete.make-nb' ; Fix text file suffix ; Fix Jar Manifest: Move Sealed to bottom.
Diffstat (limited to 'obsolete.make-nb/Makefile')
-rw-r--r--obsolete.make-nb/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/obsolete.make-nb/Makefile b/obsolete.make-nb/Makefile
new file mode 100644
index 00000000..45bc54f1
--- /dev/null
+++ b/obsolete.make-nb/Makefile
@@ -0,0 +1,29 @@
+BITS=32
+
+ifeq ($(BITS),32)
+ CC=gcc32
+ NS=win-x86
+else
+ BITS=64
+ CC=gcc64
+ NS=win-x64
+endif
+
+CFLAGS=-m$(BITS) -shared -c -fno-rtti -fPIC -I/usr/lib/jvm/java-6-sun/include -I../common/platform-libs/jre-include/win32 -Iresources/includes
+LFLAGS=-m$(BITS) -shared -fno-rtti -fPIC -L../common/platform-libs/OpenCL/win/_x64 -lOpenCL
+
+SRC=gensrc/native/CLImpl_JNI.c
+OBJ=build/obj/jocl/$(NS)/CLImpl_JNI.o
+BIN=build/natives/jocl/$(NS)/jocl.dll
+
+all: $(BIN)
+
+$(BIN): $(OBJ)
+ $(CC) $(LFLAGS) $(OBJ) -o $(BIN)
+
+$(OBJ): $(SRC)
+ $(CC) $(CFLAGS) $(SRC) -o $(OBJ)
+
+clean:
+ rm -f $(BIN) $(OBJ)
+