diff options
author | Michael Bien <[email protected]> | 2009-11-20 14:49:57 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-11-20 14:49:57 +0100 |
commit | a23d5e45b8112ffc7ba02bc564ace6ed6c0414b9 (patch) | |
tree | 1c59c104902dadf79d865ce8ed6c24f3356057fc /Makefile | |
parent | 4ac3f56ec3841a8fae7cc60635c85cf0518764b5 (diff) |
fixed mingw32 build on windows.
added scripts for crosscompilation on linux64 for win32/64 and linux32/64.
temporary disabled OpenCL extensions.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..45bc54f --- /dev/null +++ b/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) + |