CXX = @CXX@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CXXFLAGS = @CXXFLAGS@ DEFS = @DEFS@ LIBS = @LIBS@ LDFLAGS = @LDFLAGS@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ LD_SHAREEXE = @CXX@ prefix = @prefix@ topdir = @topdir@ gcclib = `$(CXX) -print-libgcc-file-name` xsim_libp = /usr/local/share/xsim/plugins include_path = $(topdir)/xsim/ bdbinc = @bdbinc@ bdblibs = @bdblibs@ bdblib = @bdblib@ OBJS=simpleim.o simpleimc.o pyphraser.o TARGET=jianpin.so all:$(TARGET) cd dict; make jianpin.so:$(OBJS) $(LD_SHAREEXE) -shared -o $(TARGET) $(OBJS) $(LDFLAGS) -L$(bdblibs) $(LIBS) -l$(bdblib) $(gcclib) simpleim.o:simpleim.cpp simpleim.h simpleimc.h b2q.h pyphraser.h $(include_path)imc.h $(include_path)wstring.h $(include_path)im.h $(include_path)ic.h $(CXX) -c simpleim.cpp -I$(include_path) -I$(include_path)/IMdkit -I$(bdbinc) $(CXXFLAGS) simpleimc.o:simpleimc.h simpleimc.cpp $(include_path)wstring.h $(include_path)imc.h $(CXX) -c simpleimc.cpp -I$(include_path) -I$(include_path)/IMdkit $(CXXFLAGS) pyphraser.o:pyphraser.cpp pyphraser.h simpleimc.h $(include_path)wstring.h $(CXX) -c pyphraser.cpp -I$(include_path) -I$(include_path)/IMdkit $(CXXFLAGS) clean: rm -f *.o $(TARGET) core *~ *.bak cd dict; make clean distclean:clean rm -rf Makefile cd dict; make distclean install:all $(topdir)/mkinstalldirs $(xsim_libp) cp -f $(TARGET) $(xsim_libp) cd dict; make install install-data: cd dict;make install-data uninstall: cd $(xsim_libp); rm -f $(TARGET) cd dict;make uninstall