Last active
October 6, 2015 11:20
-
-
Save barusan/a5764bd3fab587c357ea to your computer and use it in GitHub Desktop.
$ diff -U1 Makefile{.bak,}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Makefile.bak 2015-10-06 19:21:14.000000000 +0900 | |
+++ Makefile 2015-10-06 20:20:03.000000000 +0900 | |
@@ -18,2 +18,4 @@ | |
export GCJHFLAGS+= --classpath="$(LIBGCJ):$(JAVALIBPATH):." | |
+export JAVACFLAGS+= -encoding UTF8 -classpath "$(LIBGCJ):$(JAVALIBPATH):." | |
+export JAVAHFLAGS+= -classpath "$(LIBGCJ):$(JAVALIBPATH):." | |
@@ -43,6 +45,6 @@ | |
%.class : %.java | |
- $(GCJ) $(GCJFLAGS) -C $< | |
+ $(JAVAC) $(JAVACFLAGS) $< | |
%.h : %.class | |
- $(GCJH) $(GCJHFLAGS) $* | |
+ $(JAVAH) $(JAVAHFLAGS) -o $*.h $(subst /,., $*) | |
@@ -50,3 +52,3 @@ | |
java_lib.o : $(headers) $(sources) | |
- $(GJAR) -cf java_lib.jar pdftk/com/lowagie/*/*/*/*.class pdftk/com/lowagie/*/*/*.class pdftk/com/lowagie/*/*.class pdftk/org/bouncycastle/*/*.class pdftk/org/bouncycastle/*/*/*.class $(afms) | |
+ $(JAR) cf java_lib.jar pdftk/com/lowagie/*/*/*/*.class pdftk/com/lowagie/*/*/*.class pdftk/com/lowagie/*/*.class pdftk/org/bouncycastle/*/*.class pdftk/org/bouncycastle/*/*/*.class $(afms) | |
$(GCJ) $(GCJFLAGS) -c java_lib.jar | |
@@ -64,4 +66,4 @@ | |
$(LIBGCJ_SUPPLEMENT_O) : $(libgcj_supplement_classes) $(libgcj_supplement_sources) | |
- $(GJAR) -cf $(LIBGCJ_SUPPLEMENT_JAR) java/security/*.class gnu/java/locale/*.class | |
- $(GCJ) $(GCJFLAGS) -c $(LIBGCJ_SUPPLEMENT_JAR) | |
+ $(JAR) cf $(LIBGCJ_SUPPLEMENT_JAR) java/security/*.class gnu/java/locale/*.class | |
+ $(JAVAC) $(JAVACFLAGS) -c $(LIBGCJ_SUPPLEMENT_JAR) | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment