xref: /kernel/linux/linux-6.6/tools/thermal/thermometer/Makefile
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/thermal/thermometer/
162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci# Makefile for cgroup tools
362306a36Sopenharmony_ci
462306a36Sopenharmony_ciifeq ($(srctree),)
562306a36Sopenharmony_cisrctree := $(patsubst %/,%,$(dir $(CURDIR)))
662306a36Sopenharmony_cisrctree := $(patsubst %/,%,$(dir $(srctree)))
762306a36Sopenharmony_cisrctree := $(patsubst %/,%,$(dir $(srctree)))
862306a36Sopenharmony_ci# $(info Determined 'srctree' to be $(srctree))
962306a36Sopenharmony_ciendif
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ciCFLAGS = -Wall -Wextra
1262306a36Sopenharmony_ciCFLAGS += -I$(srctree)/tools/thermal/lib
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciLDFLAGS = -L$(srctree)/tools/thermal/lib
1562306a36Sopenharmony_ciLDFLAGS += -lthermal_tools
1662306a36Sopenharmony_ciLDFLAGS += -lconfig
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ciVERSION = 0.0.1
1962306a36Sopenharmony_ciTARGET=thermometer
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciall: $(TARGET)
2262306a36Sopenharmony_ci%: %.c
2362306a36Sopenharmony_ci	$(CC) $(CFLAGS) -D VERSION=\"$(VERSION)\" -o $@ $^ $(LDFLAGS)
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ciclean:
2662306a36Sopenharmony_ci	$(RM) $(TARGET)
27

Indexes created Thu Nov 07 10:32:03 CST 2024