Commits

didier deshommes committed a38529c

Makefile tweaks, make multipication work

  • Participants
  • Parent commits baf74a2

Comments (0)

Files changed (2)

   mpz_ptr _this; 
 
   TRACE("begin");
-  _this = (mpz_ptr) malloc(sizeof (mpz_t)); (mpz_ptr)JCL_malloc (env, sizeof (mpz_t));
+  _this = (mpz_ptr)JCL_malloc (env, sizeof (mpz_t));
   //initialize --GMP sets the value to zero.
   mpz_init (_this);
   //instantiate the Pointer instance for this NativeMPI.
  * @param r  a NativeMPI's Pointer such that r = this * x.
  */
 JNIEXPORT void JNICALL
-Java_natMultiply(JNIEnv *env, jobject this,
+Java_GMP_natMultiply(JNIEnv *env, jobject this,
                                                      jobject x, jobject r)
 {
 
 Includes := -I /usr/include
 LIBS := -L /usr/lib -lgmp -L. -ljcl
-CFLAGS := -shared -static -Wl,-rpath,`pwd`
+CFLAGS := -Wall -shared -static -Wl,-rpath,`pwd`
+JAVA_FLAGS := -Xlint
 
 java: *.java libgmpjava jni
-	javac *.java	
+	javac $(JAVA_FLAGS) *.java	
 
 jni:GMP.java
-	javac GMP.java
+	javac $(JAVA_FLAGS) GMP.java
 	javah -jni GMP