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

TOMOYO Linux Cross Reference
Linux/tools/verification/rv/Makefile

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/verification/rv/Makefile (Architecture ppc) and /tools/verification/rv/Makefile (Architecture alpha)


  1 # SPDX-License-Identifier: GPL-2.0-only             1 # SPDX-License-Identifier: GPL-2.0-only
  2                                                     2 
  3 ifeq ($(srctree),)                                  3 ifeq ($(srctree),)
  4   srctree       := $(patsubst %/,%,$(dir $(CUR      4   srctree       := $(patsubst %/,%,$(dir $(CURDIR)))
  5   srctree       := $(patsubst %/,%,$(dir $(src      5   srctree       := $(patsubst %/,%,$(dir $(srctree)))
  6   srctree       := $(patsubst %/,%,$(dir $(src      6   srctree       := $(patsubst %/,%,$(dir $(srctree)))
  7 endif                                               7 endif
  8                                                     8 
  9 include $(srctree)/tools/scripts/Makefile.incl      9 include $(srctree)/tools/scripts/Makefile.include
 10                                                    10 
 11 # O is an alias for OUTPUT                         11 # O is an alias for OUTPUT
 12 OUTPUT          := $(O)                            12 OUTPUT          := $(O)
 13                                                    13 
 14 ifeq ($(OUTPUT),)                                  14 ifeq ($(OUTPUT),)
 15   OUTPUT       := $(CURDIR)/                       15   OUTPUT       := $(CURDIR)/
 16 else                                               16 else
 17   # subdir is used by the ../Makefile in $(cal     17   # subdir is used by the ../Makefile in $(call descend,)
 18   ifneq ($(subdir),)                               18   ifneq ($(subdir),)
 19     OUTPUT        := $(OUTPUT)/$(subdir)           19     OUTPUT        := $(OUTPUT)/$(subdir)
 20   endif                                            20   endif
 21 endif                                              21 endif
 22                                                    22 
 23 ifneq ($(patsubst %/,,$(lastword $(OUTPUT))),)     23 ifneq ($(patsubst %/,,$(lastword $(OUTPUT))),)
 24   OUTPUT := $(OUTPUT)/                             24   OUTPUT := $(OUTPUT)/
 25 endif                                              25 endif
 26                                                    26 
 27 RV              := $(OUTPUT)rv                     27 RV              := $(OUTPUT)rv
 28 RV_IN           := $(RV)-in.o                      28 RV_IN           := $(RV)-in.o
 29                                                    29 
 30 VERSION         := $(shell sh -c "make -sC ../     30 VERSION         := $(shell sh -c "make -sC ../../.. kernelversion | grep -v make")
 31 DOCSRC          := ../../../Documentation/tool     31 DOCSRC          := ../../../Documentation/tools/rv/
 32                                                    32 
 33 FEATURE_TESTS   := libtraceevent                   33 FEATURE_TESTS   := libtraceevent
 34 FEATURE_TESTS   += libtracefs                      34 FEATURE_TESTS   += libtracefs
 35 FEATURE_DISPLAY := libtraceevent                   35 FEATURE_DISPLAY := libtraceevent
 36 FEATURE_DISPLAY += libtracefs                      36 FEATURE_DISPLAY += libtracefs
 37                                                    37 
 38 ifeq ($(V),1)                                      38 ifeq ($(V),1)
 39   Q             =                                  39   Q             =
 40 else                                               40 else
 41   Q             = @                                41   Q             = @
 42 endif                                              42 endif
 43                                                    43 
 44 all: $(RV)                                         44 all: $(RV)
 45                                                    45 
 46 include $(srctree)/tools/build/Makefile.includ     46 include $(srctree)/tools/build/Makefile.include
 47 include Makefile.rv                                47 include Makefile.rv
 48                                                    48 
 49 # check for dependencies only on required targ     49 # check for dependencies only on required targets
 50 NON_CONFIG_TARGETS := clean install doc doc_cl     50 NON_CONFIG_TARGETS := clean install doc doc_clean doc_install
 51                                                    51 
 52 config          := 1                               52 config          := 1
 53 ifdef MAKECMDGOALS                                 53 ifdef MAKECMDGOALS
 54   ifeq ($(filter-out $(NON_CONFIG_TARGETS),$(M     54   ifeq ($(filter-out $(NON_CONFIG_TARGETS),$(MAKECMDGOALS)),)
 55   config        := 0                               55   config        := 0
 56 endif                                              56 endif
 57 endif                                              57 endif
 58                                                    58 
 59 ifeq ($(config),1)                                 59 ifeq ($(config),1)
 60   include $(srctree)/tools/build/Makefile.feat     60   include $(srctree)/tools/build/Makefile.feature
 61   include Makefile.config                          61   include Makefile.config
 62 endif                                              62 endif
 63                                                    63 
 64 CFLAGS          += $(INCLUDES) $(LIB_INCLUDES)     64 CFLAGS          += $(INCLUDES) $(LIB_INCLUDES)
 65                                                    65 
 66 export CFLAGS OUTPUT srctree                       66 export CFLAGS OUTPUT srctree
 67                                                    67 
 68 $(RV): $(RV_IN)                                    68 $(RV): $(RV_IN)
 69         $(QUIET_LINK)$(CC) $(LDFLAGS) -o $(RV)     69         $(QUIET_LINK)$(CC) $(LDFLAGS) -o $(RV) $(RV_IN) $(EXTLIBS)
 70                                                    70 
 71 static: $(RV_IN)                                   71 static: $(RV_IN)
 72         $(eval LDFLAGS += -static)                 72         $(eval LDFLAGS += -static)
 73         $(QUIET_LINK)$(CC) $(LDFLAGS) -o $(RV)     73         $(QUIET_LINK)$(CC) $(LDFLAGS) -o $(RV)-static $(RV_IN) $(EXTLIBS)
 74                                                    74 
 75 rv.%: fixdep FORCE                                 75 rv.%: fixdep FORCE
 76         make -f $(srctree)/tools/build/Makefil     76         make -f $(srctree)/tools/build/Makefile.build dir=. $@
 77                                                    77 
 78 $(RV_IN): fixdep FORCE                             78 $(RV_IN): fixdep FORCE
 79         make $(build)=rv                           79         make $(build)=rv
 80                                                    80 
 81 clean: doc_clean fixdep-clean                      81 clean: doc_clean fixdep-clean
 82         $(call QUIET_CLEAN, rv)                    82         $(call QUIET_CLEAN, rv)
 83         $(Q)find . -name '*.o' -delete -o -nam     83         $(Q)find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
 84         $(Q)rm -f rv rv-static fixdep FEATURE-     84         $(Q)rm -f rv rv-static fixdep FEATURE-DUMP rv-*
 85         $(Q)rm -rf feature                         85         $(Q)rm -rf feature
 86                                                    86 
 87 .PHONY: FORCE clean                                87 .PHONY: FORCE clean
                                                      

~ [ 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