blob: 4ee0a88d9ac01c5b533c5e1bcc76f56ca661889e (
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
|
CXXFLAGS += -g -std=c++23 -Wextra -Werror
LDFLAGS += -lcommon -ldyninstAPI -linstructionAPI -lparseAPI # dyninst
PREFIX ?= /usr/local
BIN := fix scout synth
BIN_PREFIX := $(DESTDIR)$(PREFIX)/bin/taosc-
DATA := collect patch
DATA_DIR := $(DESTDIR)$(PREFIX)/share/taosc
.PHONY: all clean install
all: $(BIN) $(DATA)
clean:
rm -f $(BIN) $(DATA)
fix: fix.m4
m4 -D DATA_DIR=${DATA_DIR} $< > $@
collect: collect.c
e9compile $<
patch: patch.c
e9compile $<
install: $(addprefix $(BIN_PREFIX),$(BIN)) $(addprefix $(DATA_DIR)/,$(DATA))
$(BIN_PREFIX)%: %
install -Dm 755 $< $@
$(DATA_DIR)/%: %
install -Dm 644 $< $@
|