Add documentation
[deliverable/exatracer.git] / Makefile
index f7c1fb206a2d8fee86247457508ee25acf8b7980..0ee9d010afc961cfaa6f1b6755fa8e36d944235c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,14 +6,18 @@ CXX?=g++
 builddir?=$(CURDIR)/build
 
 # Do not touch below.
+
+# HIP C compiler.
 HIPCC=$(ROCM)/bin/hipcc
+
+# This is used in some of the HIP headers.
 PLATFORM=__HIP_PLATFORM_$(VENDOR)__
 
-# LTTng-UST
+# LTTng-UST flags.
 LTTNG_UST_CFLAGS=$(shell pkg-config --cflags lttng-ust)
 LTTNG_UST_LIBS=$(shell pkg-config --libs lttng-ust)
 
-# Rocprofiler-sdk
+# Rocprofiler-sdk flags.  There is not rocprofiler-sdk.pc for pkg-config.
 ROCPROFILER_SDK_CFLAGS=-I $(ROCM)/include -L $(ROCM)/lib -Wl,-rpath=$(ROCM)/lib
 ROCPROFILER_SDK_LIBS=-lrocprofiler-sdk
 
@@ -21,7 +25,6 @@ ROCPROFILER_SDK_LIBS=-lrocprofiler-sdk
 DEPS_CFLAGS=$(LTTNG_UST_CFLAGS) $(ROCPROFILER_SDK_CFLAGS)
 DEPS_LIBS=$(LTTNG_UST_LIBS) $(ROCPROFILER_SDK_LIBS)
 
-
 # HIP stuff.
 AUTOGEN_HIP_API=$(builddir)/lttng-ust-hip-defs.h    \
                 $(builddir)/lttng-ust-hip.h         \
@@ -84,7 +87,7 @@ check: $(builddir)/hello
        scripts/check $(TARGET) $^
 
 clean:
-       rm -rf ./build
+       rm -rf $(builddir)
        rm -rf ./traces
 
 dist:
This page took 0.023176 seconds and 4 git commands to generate.