.POSIX: .PHONY: all clean install uninstall CXXFLAGS += -g -std=c++23 -Wextra -Werror LDLIBS += -lcommon -ldyninstAPI -linstructionAPI -lparseAPI # dyninst PREFIX ?= /usr/local BIN_PREFIX ::= $(DESTDIR)$(PREFIX)/bin/taosc- DATA_DIR ::= $(DESTDIR)$(PREFIX)/share/taosc BIN ::= fix scout synth DATA ::= collect patch all: $(BIN) $(DATA) clean: rm -f $(BIN) $(DATA) fix: fix.m4 m4 -D DATA_DIR=$(DATA_DIR) $< > $@ synth: synth.py link $< $@ collect: collect.c e9compile $< patch: patch.c e9compile $< install: $(BIN:%=$(BIN_PREFIX)%) $(DATA:%=$(DATA_DIR)/%) $(BIN_PREFIX)%: % install -Dm 755 $< $@ $(DATA_DIR)/%: % install -Dm 644 $< $@ uninstall: rm -f $(BIN:%=$(BIN_PREFIX)%) $(DATA:%=$(DATA_DIR)/%) rmdir $(DATA_DIR)