Ticket #29647: patch-Makefile.diff
File patch-Makefile.diff, 1.2 KB (added by humem (humem), 13 years ago) |
---|
-
Makefile
old new 1 TARGET=MeCab 2 JAVAC=javac 3 JAVA=java 4 JAR=jar 5 CXX=c++ 6 INCLUDE=/usr/local/jdk/include 1 JAVA_BASE=/System/Library/Frameworks/JavaVM.framework 2 JAVA_HOME=$(JAVA_BASE)/Home 3 4 TARGET=mecab 5 JAVAC=$(JAVA_HOME)/bin/javac -encoding UTF-8 6 JAVA=$(JAVA_HOME)/bin/java -Dfile.encoding=UTF-8 7 JAR=$(JAVA_HOME)/bin/jar 8 CXX=g++ 9 INCLUDE=$(JAVA_BASE)/Headers 7 10 8 11 PACKAGE=org/chasen/mecab 9 12 10 13 LIBS=`mecab-config --libs` 11 INC=`mecab-config --cflags` -I$(INCLUDE) -I$(INCLUDE)/linux14 INC=`mecab-config --cflags` -I$(INCLUDE) 12 15 13 16 all: 14 $(CXX) -O3 -c -fpic $(TARGET)_wrap.cxx$(INC)15 $(CXX) -shared $(TARGET)_wrap.o -o lib$(TARGET).so$(LIBS)17 $(CXX) $(CXXFLAGS) -c -fPIC $(TARGET)_wrap.cxx $(INC) 18 $(CXX) $(CXXFLAGS) -dynamiclib $(TARGET)_wrap.o -o lib$(TARGET)-java.dylib $(LIBS) 16 19 $(JAVAC) $(PACKAGE)/*.java 17 20 $(JAVAC) test.java 18 21 $(JAR) cfv $(TARGET).jar $(PACKAGE)/*.class 19 22 20 23 test: 21 env LD_LIBRARY_PATH=.$(JAVA) test24 $(JAVA) test 22 25 23 26 clean: 24 rm -fr *.jar *.o *. so*.class $(PACKAGE)/*.class25 27 rm -fr *.jar *.o *.dylib *.class $(PACKAGE)/*.class 28 26 29 cleanall: 27 30 rm -fr $(TARGET).java *.cxx