1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for cgroup tools
5 srctree
:= $(patsubst %/,%,$(dir $(CURDIR
)))
6 srctree
:= $(patsubst %/,%,$(dir $(srctree
)))
7 srctree
:= $(patsubst %/,%,$(dir $(srctree
)))
8 # $(info Determined 'srctree' to be $(srctree))
11 CFLAGS
= -Wall
-Wextra
12 CFLAGS
+= -I
$(srctree
)/tools
/thermal
/lib
14 LDFLAGS
= -L
$(srctree
)/tools
/thermal
/lib
15 LDFLAGS
+= -lthermal_tools
23 $(CC
) $(CFLAGS
) -D VERSION
=\"$(VERSION
)\" -o
$@
$^
$(LDFLAGS
)