brintos

brintos / linux-shallow public Read only

0
0
Text · 575 B · d8f8bc8 Raw
27 lines · plain
1# SPDX-License-Identifier: GPL-2.02# Makefile for cgroup tools3 4ifeq ($(srctree),)5srctree := $(patsubst %/,%,$(dir $(CURDIR)))6srctree := $(patsubst %/,%,$(dir $(srctree)))7srctree := $(patsubst %/,%,$(dir $(srctree)))8# $(info Determined 'srctree' to be $(srctree))9endif10 11CFLAGS = -Wall -Wextra12CFLAGS += -I$(srctree)/tools/thermal/lib13 14LDFLAGS = -L$(srctree)/tools/thermal/lib15LDFLAGS += -lthermal_tools16LDFLAGS += -lconfig17 18VERSION = 0.0.119TARGET=thermometer20 21all: $(TARGET)22%: %.c23	$(CC) $(CFLAGS) -D VERSION=\"$(VERSION)\" -o $@ $^ $(LDFLAGS)24 25clean:26	$(RM) $(TARGET)27