-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
44 lines (38 loc) · 881 Bytes
/
Makefile
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
42
43
44
PYTHON ?= python3
.PHONY:
all: cpptrace rpd rocpd remote
.PHONY: install
install: all
$(MAKE) install -C rocpd_python
$(MAKE) install -C rpd_tracer
$(MAKE) install -C remote
.PHONY: uninstall
uninstall:
$(MAKE) uninstall -C rocpd_python
$(MAKE) uninstall -C rpd_tracer
$(MAKE) uninstall -C remote
.PHONY: clean
clean: cpptrace-clean
$(MAKE) clean -C rocpd_python
$(MAKE) clean -C rpd_tracer
$(MAKE) clean -C remote
.PHONY: rpd
rpd:
$(MAKE) -C rpd_tracer
.PHONY: rocpd
rocpd:
$(MAKE) -C rocpd_python
.PHONY: remote
remote:
$(MAKE) -C remote
.PHONY: cpptrace
CPPTRACE_MAKE?= $(wildcard cpptrace/Makefile)
ifneq ($(CPPTRACE_MAKE),)
cpptrace:
cd cpptrace; cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../cpptrace_install; cmake --build build; cmake --install build
cpptrace-clean:
$(MAKE) clean -C cpptrace
else
cpptrace:
cpptrace-clean:
endif