~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/thermal/lib/Makefile

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/thermal/lib/Makefile (Version linux-6.12-rc7) and /tools/thermal/lib/Makefile (Version linux-5.17.15)


  1 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-    
  2 # Most of this file is copied from tools/lib/p    
  3                                                   
  4 LIBTHERMAL_TOOLS_VERSION = 0                      
  5 LIBTHERMAL_TOOLS_PATCHLEVEL = 0                   
  6 LIBTHERMAL_TOOLS_EXTRAVERSION = 1                 
  7                                                   
  8 MAKEFLAGS += --no-print-directory                 
  9                                                   
 10 ifeq ($(srctree),)                                
 11 srctree := $(patsubst %/,%,$(dir $(CURDIR)))      
 12 srctree := $(patsubst %/,%,$(dir $(srctree)))     
 13 srctree := $(patsubst %/,%,$(dir $(srctree)))     
 14 # $(info Determined 'srctree' to be $(srctree)    
 15 endif                                             
 16                                                   
 17 INSTALL = install                                 
 18                                                   
 19 # Use DESTDIR for installing into a different     
 20 # This is useful for building a package. The p    
 21 # installed in this directory as if it was the    
 22 # Then the build tool can move it later.          
 23 DESTDIR ?=                                        
 24 DESTDIR_SQ = '$(subst ','\'',$(DESTDIR))'         
 25                                                   
 26 include $(srctree)/tools/scripts/Makefile.incl    
 27 include $(srctree)/tools/scripts/Makefile.arch    
 28                                                   
 29 ifeq ($(LP64), 1)                                 
 30   libdir_relative = lib64                         
 31 else                                              
 32   libdir_relative = lib                           
 33 endif                                             
 34                                                   
 35 prefix ?=                                         
 36 libdir = $(prefix)/$(libdir_relative)             
 37                                                   
 38 # Shell quotes                                    
 39 libdir_SQ = $(subst ','\'',$(libdir))             
 40 libdir_relative_SQ = $(subst ','\'',$(libdir_r    
 41                                                   
 42 ifeq ("$(origin V)", "command line")              
 43   VERBOSE = $(V)                                  
 44 endif                                             
 45 ifndef VERBOSE                                    
 46   VERBOSE = 0                                     
 47 endif                                             
 48                                                   
 49 ifeq ($(VERBOSE),1)                               
 50   Q =                                             
 51 else                                              
 52   Q = @                                           
 53 endif                                             
 54                                                   
 55 # Set compile option CFLAGS                       
 56 ifdef EXTRA_CFLAGS                                
 57   CFLAGS := $(EXTRA_CFLAGS)                       
 58 else                                              
 59   CFLAGS := -g -Wall                              
 60 endif                                             
 61                                                   
 62 INCLUDES = \                                      
 63 -I/usr/include/libnl3 \                           
 64 -I$(srctree)/tools/lib/thermal/include \          
 65 -I$(srctree)/tools/lib/ \                         
 66 -I$(srctree)/tools/include \                      
 67 -I$(srctree)/tools/arch/$(SRCARCH)/include/ \     
 68 -I$(srctree)/tools/arch/$(SRCARCH)/include/uap    
 69 -I$(srctree)/tools/include/uapi                   
 70                                                   
 71 # Append required CFLAGS                          
 72 override CFLAGS += $(EXTRA_WARNINGS)              
 73 override CFLAGS += -Werror -Wall                  
 74 override CFLAGS += -fPIC                          
 75 override CFLAGS += $(INCLUDES)                    
 76 override CFGLAS += -Wl,-L.                        
 77 override CFGLAS += -Wl,-lthermal                  
 78                                                   
 79 all:                                              
 80                                                   
 81 export srctree OUTPUT CC LD CFLAGS V              
 82 export DESTDIR DESTDIR_SQ                         
 83                                                   
 84 include $(srctree)/tools/build/Makefile.includ    
 85                                                   
 86 PATCHLEVEL    = $(LIBTHERMAL_TOOLS_PATCHLEVEL)    
 87 EXTRAVERSION  = $(LIBTHERMAL_TOOLS_EXTRAVERSIO    
 88 VERSION       = $(LIBTHERMAL_TOOLS_VERSION).$(    
 89                                                   
 90 LIBTHERMAL_TOOLS_SO := $(OUTPUT)libthermal_too    
 91 LIBTHERMAL_TOOLS_A  := $(OUTPUT)libthermal_too    
 92 LIBTHERMAL_TOOLS_IN := $(OUTPUT)libthermal_too    
 93 LIBTHERMAL_TOOLS_PC := $(OUTPUT)libthermal_too    
 94                                                   
 95 LIBTHERMAL_TOOLS_ALL := $(LIBTHERMAL_TOOLS_A)     
 96                                                   
 97 $(LIBTHERMAL_TOOLS_IN): FORCE                     
 98         $(Q)$(MAKE) $(build)=libthermal_tools     
 99                                                   
100 $(LIBTHERMAL_TOOLS_A): $(LIBTHERMAL_TOOLS_IN)     
101         $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(    
102                                                   
103 $(LIBTHERMAL_TOOLS_SO): $(LIBTHERMAL_TOOLS_IN)    
104         $(QUIET_LINK)$(CC) --shared -Wl,-sonam    
105         @ln -sf $(@F) $(OUTPUT)libthermal_tool    
106         @ln -sf $(@F) $(OUTPUT)libthermal_tool    
107                                                   
108                                                   
109 libs: $(LIBTHERMAL_TOOLS_A) $(LIBTHERMAL_TOOLS    
110                                                   
111 all: fixdep                                       
112         $(Q)$(MAKE) libs                          
113                                                   
114 clean:                                            
115         $(call QUIET_CLEAN, libthermal_tools)     
116                 *.o *~ *.a *.so *.so.$(VERSION    
117                                                   
118 $(LIBTHERMAL_TOOLS_PC):                           
119         $(QUIET_GEN)sed -e "s|@PREFIX@|$(prefi    
120                 -e "s|@LIBDIR@|$(libdir_SQ)|"     
121                 -e "s|@VERSION@|$(VERSION)|" \    
122                 < libthermal_tools.pc.template    
123                                                   
124 define do_install_mkdir                           
125         if [ ! -d '$(DESTDIR_SQ)$1' ]; then       
126                 $(INSTALL) -d -m 755 '$(DESTDI    
127         fi                                        
128 endef                                             
129                                                   
130 define do_install                                 
131         if [ ! -d '$(DESTDIR_SQ)$2' ]; then       
132                 $(INSTALL) -d -m 755 '$(DESTDI    
133         fi;                                       
134         $(INSTALL) $1 $(if $3,-m $3,) '$(DESTD    
135 endef                                             
136                                                   
137 install_lib: libs                                 
138         $(call QUIET_INSTALL, $(LIBTHERMAL_TOO    
139                 $(call do_install_mkdir,$(libd    
140                 cp -fpR $(LIBTHERMAL_TOOLS_ALL    
141                                                   
142 install_headers:                                  
143         $(call QUIET_INSTALL, headers) \          
144                 $(call do_install,include/ther    
145                                                   
146 install_pkgconfig: $(LIBTHERMAL_TOOLS_PC)         
147         $(call QUIET_INSTALL, $(LIBTHERMAL_TOO    
148                 $(call do_install,$(LIBTHERMAL    
149                                                   
150 install_doc:                                      
151         $(Q)$(MAKE) -C Documentation install-m    
152                                                   
153 #install: install_lib install_headers install_    
154 install: install_lib install_headers install_p    
155                                                   
156 FORCE:                                            
157                                                   
158 .PHONY: all install clean FORCE                   
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php