blob: 92cefaff3df445bdbc13e02d5dbeb4af8d2b8fd0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
.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)
|