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-create-fst $(BIN_DIR) install -m 0755 compdic-fst-add $(BIN_DIR) install -m 0755 compdic-fst-minus $(BIN_DIR) install -m 0755 compdic-fst-to-bin $(BIN_DIR) install -m 0755 compdic-fst-update $(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-create-fst rm $(BIN_DIR)/compdic-fst-add rm $(BIN_DIR)/compdic-fst-minus rm $(BIN_DIR)/compdic-fst-to-bin rm $(BIN_DIR)/compdic-fst-update rm $(BIN_DIR)/fsm2aut rm $(BIN_DIR)/aut2fsa rm $(BIN_DIR)/lst2fstext endif .PHONY: clean clean: rm aut2fsa