SubDir TOP unitex2xml ;


Library $(LIBODELA) : DELAentry.cpp DELAcorresp.cpp ;

Library $(LIBOFST2) : 
                      FST2_to_string_transducer.cpp
                      FST2_to_generic_fst.cpp
                    ;                
#utilities

Main          extractcodes : extractcodes2.cpp ;
LinkLibraries extractcodes$(SUFEXE) : $(LIBODELA) ;

Main          delaf-light : delaf-light.cpp ;
LinkLibraries delaf-light$(SUFEXE) : $(LIBODELA) ;
LINKLIBS on delaf-light$(SUFEXE) = $(BOOSTFSLIB) ;


Main          stripDELA : stripDELA.cpp ;
LinkLibraries stripDELA$(SUFEXE) : $(LIBODELA) ;


# DELAF -> XML transition

Main          lemmafirst : lemmafirst.cpp ;
LinkLibraries lemmafirst : $(LIBODELA) ;
LINKLIBS on   lemmafirst$(SUFEXE) = $(BOOSTFSLIB) ;

Main          delaf2xml-bin : delaf2xml.cpp ;
LinkLibraries delaf2xml-bin : $(LIBODELA) ;
LINKLIBS on   delaf2xml-bin$(SUFEXE) = $(BOOSTFSLIB) ;

# text FST2 -> xml fsa transition

#Main          textfst2xml : textfst2xml.cpp ;
#LinkLibraries textfst2xml : $(LIBODELA) $(LIBODICO) $(LIBOLINGDEF) ;
#LINKLIBS on   textfst2xml$(SUFEXE)   = $(BOOSTFSLIB) $(UNICODELIB) $(XMLLIB) ;

#Main          textfst2xml-old : textfst2xml-old.cpp ;
#LinkLibraries textfst2xml-old : $(LIBODELA) $(LIBODICO) ;
#LINKLIBS on   textfst2xml-old$(SUFEXE)   = $(BOOSTFSLIB) $(UNICODELIB) $(XMLLIB) ;

# FST2 -> xml generic fst

#Main          FST2genfst : FST2genfst.cpp ;
#LinkLibraries FST2genfst$(SUFEXE) : $(LIBOFST2) $(LIBOFSA) ;
#LINKLIBS on   FST2genfst$(SUFEXE) = $(BOOSTFSLIB) $(XMLLIB) ;


Main delaf-factorize : delaf-factorize.cpp ;
LinkLibraries delaf-factorize$(SUFEXE) : $(LIBODELA) ;
LINKLIBS on delaf-factorize$(SUFEXE) = $(BOOSTFSLIB) ;

Main tokenizer : tokenizer.cpp ;
LINKLIBS on tokenizer$(SUFEXE) = $(BOOSTREGEX) ;



InstallBin $(BINDIR) : textfst2xml upreprocess 
                       lemmafirst delaf2xml-bin delaf2xml.sh
                       grf2stringfst FST2genfst
                       grf82ugrammar
                       grf82rtn
                       delaf-factorize
                       delaf-light
                       ;

