forked from ROCm/rocmProfileData
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (39 loc) · 974 Bytes
/
Makefile
File metadata and controls
45 lines (39 loc) · 974 Bytes
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
45
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; cd ../cpptrace_install; if [ ! -d ./lib ]; then ln -s lib64 lib; fi
cpptrace-clean:
$(MAKE) clean -C cpptrace
rm -r cpptrace_install
else
cpptrace:
cpptrace-clean:
endif