include ../../config.mak LDFLAGS += -static CXXFLAGS += -O2 -fpermissive all: compdic aut2fsa .PHONY: compdic compdic: aut2fsa: aut2fsa.cc g++ $(CXXFLAGS) $(LDFLAGS) -o aut2fsa aut2fsa.cc .PHONY: install install: ifdef BIN_DIR install -m 0755 compdic $(BIN_DIR) install -m 0755 compdic-update $(BIN_DIR) install -m 0755 compdic-update-fst $(BIN_DIR) install -m 0755 compdic-update-cats $(BIN_DIR) install -m 0755 compdic-dic-to-fst $(BIN_DIR) install -m 0755 compdic-dic-to-cats $(BIN_DIR) install -m 0755 compdic-fst-to-bin $(BIN_DIR) install -m 0755 canonize $(BIN_DIR) install -m 0755 fsm2aut $(BIN_DIR) install -m 0755 aut2fsa $(BIN_DIR) install -m 0755 lst2fstext $(BIN_DIR) endif .PHONY: uninstall uninstall: ifdef BIN_DIR rm $(BIN_DIR)/compdic rm $(BIN_DIR)/compdic-update rm $(BIN_DIR)/compdic-update-fst rm $(BIN_DIR)/compdic-update-cats rm $(BIN_DIR)/compdic-dic-to-fst rm $(BIN_DIR)/compdic-dic-to-cats rm $(BIN_DIR)/compdic-fst-to-bin rm $(BIN_DIR)/fsm2aut rm $(BIN_DIR)/aut2fsa rm $(BIN_DIR)/lst2fstext rm $(BIN_DIR)/canonize endif .PHONY: clean clean: rm aut2fsa