Makefile: clean up

Remove double -Wall.

Remove include/linux - include/ is sufficient.

Add 'obj' folder to the clean target.

Take JAVA_HOME environment variable for the systems with more
than one JDK instance installed.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Make strerror_r portable

strerror_r() can return either 'int' or 'char *' depending on its
implementation. The code sample was taken from AOSP.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Android build: include only jni.h

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Merge pull request #8 from yegorich/android-build

Android build
Merge pull request #7 from yegorich/compile-fixes

Makefile: clean up
fix compile error - needs more testing
kill move()
correct indentation tabs/spaces
get rid of nullptr and reorder headers
no need for -std=gnu++11 anymore
explicit std::string constructor
one more explicit std::string constructor
Do not warn because of unused parameters.

The Android-NDK complains about them, so disable the warning.
Fix close() issue

Fix close() mathod parameter type from jobject to jclass,
otherwise a call to close() method results in a following exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError:
de.entropia.can.CanSocket._close(I)V
at de.entropia.can.CanSocket._close(Native Method)
at de.entropia.can.CanSocket.close(CanSocket.java:405)

Reported and fixed by Sandro Anders.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Merge pull request #10 from yegorich/fix-close

Fix close() issue
Makefile: clean up

Remove double -Wall.

Remove include/linux - include/ is sufficient.

Add 'obj' folder to the clean target.

Take JAVA_HOME environment variable for the systems with more
than one JDK instance installed.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Make strerror_r portable

strerror_r() can return either 'int' or 'char *' depending on its
implementation. The code sample was taken from AOSP.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Android build: include only jni.h

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
fix compile error - needs more testing
kill move()