brintos

brintos / linux-shallow public Read only

0
0
Text · 708 B · 6bd05ff Raw
29 lines · plain
1# SPDX-License-Identifier: GPL-2.02# Makefile for thermal 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/lib13CFLAGS += -I$(srctree)/tools/lib/thermal/include14 15LDFLAGS = -L$(srctree)/tools/thermal/lib16LDFLAGS += -L$(srctree)/tools/lib/thermal17LDFLAGS += -lthermal_tools18LDFLAGS += -lthermal19LDFLAGS += -lconfig20LDFLAGS += -lnl-genl-3 -lnl-321 22VERSION = 0.0.123 24all: thermal-engine25%: %.c26	$(CC) $(CFLAGS) -D VERSION=\"$(VERSION)\" -o $@ $^ $(LDFLAGS)27clean:28	$(RM) thermal-engine29