Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 # Makefile for thermal tools
0003 
0004 ifeq ($(srctree),)
0005 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
0006 srctree := $(patsubst %/,%,$(dir $(srctree)))
0007 srctree := $(patsubst %/,%,$(dir $(srctree)))
0008 # $(info Determined 'srctree' to be $(srctree))
0009 endif
0010 
0011 CFLAGS = -Wall -Wextra
0012 CFLAGS += -I$(srctree)/tools/thermal/lib
0013 CFLAGS += -I$(srctree)/tools/lib/thermal/include
0014 
0015 LDFLAGS = -L$(srctree)/tools/thermal/lib
0016 LDFLAGS += -L$(srctree)/tools/lib/thermal
0017 LDFLAGS += -lthermal_tools
0018 LDFLAGS += -lthermal
0019 LDFLAGS += -lconfig
0020 LDFLAGS += -lnl-genl-3 -lnl-3
0021 
0022 VERSION = 0.0.1
0023 
0024 all: thermal-engine
0025 %: %.c
0026         $(CC) $(CFLAGS) -D VERSION=\"$(VERSION)\" -o $@ $^ $(LDFLAGS)
0027 clean:
0028         $(RM) thermal-engine