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

TOMOYO Linux Cross Reference
Linux/tools/hv/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/hv/Makefile (Architecture i386) and /tools/hv/Makefile (Architecture alpha)


  1 # SPDX-License-Identifier: GPL-2.0                  1 # SPDX-License-Identifier: GPL-2.0
  2 # Makefile for Hyper-V tools                        2 # Makefile for Hyper-V tools
  3 include ../scripts/Makefile.include                 3 include ../scripts/Makefile.include
  4                                                     4 
  5 ARCH := $(shell uname -m 2>/dev/null)               5 ARCH := $(shell uname -m 2>/dev/null)
  6 sbindir ?= /usr/sbin                                6 sbindir ?= /usr/sbin
  7 libexecdir ?= /usr/libexec                          7 libexecdir ?= /usr/libexec
  8 sharedstatedir ?= /var/lib                          8 sharedstatedir ?= /var/lib
  9                                                     9 
 10 ifeq ($(srctree),)                                 10 ifeq ($(srctree),)
 11 srctree := $(patsubst %/,%,$(dir $(CURDIR)))       11 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
 12 srctree := $(patsubst %/,%,$(dir $(srctree)))      12 srctree := $(patsubst %/,%,$(dir $(srctree)))
 13 endif                                              13 endif
 14                                                    14 
 15 # Do not use make's built-in rules                 15 # Do not use make's built-in rules
 16 # (this improves performance and avoids hard-t     16 # (this improves performance and avoids hard-to-debug behaviour);
 17 MAKEFLAGS += -r                                    17 MAKEFLAGS += -r
 18                                                    18 
 19 override CFLAGS += -O2 -Wall -g -D_GNU_SOURCE      19 override CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include
 20 override CFLAGS += -Wno-address-of-packed-memb     20 override CFLAGS += -Wno-address-of-packed-member
 21                                                    21 
 22 ALL_TARGETS := hv_kvp_daemon hv_vss_daemon         22 ALL_TARGETS := hv_kvp_daemon hv_vss_daemon
 23 ifneq ($(ARCH), aarch64)                           23 ifneq ($(ARCH), aarch64)
 24 ALL_TARGETS += hv_fcopy_uio_daemon                 24 ALL_TARGETS += hv_fcopy_uio_daemon
 25 endif                                              25 endif
 26 ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_     26 ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))
 27                                                    27 
 28 ALL_SCRIPTS := hv_get_dhcp_info.sh hv_get_dns_     28 ALL_SCRIPTS := hv_get_dhcp_info.sh hv_get_dns_info.sh hv_set_ifconfig.sh
 29                                                    29 
 30 all: $(ALL_PROGRAMS)                               30 all: $(ALL_PROGRAMS)
 31                                                    31 
 32 export srctree OUTPUT CC LD CFLAGS                 32 export srctree OUTPUT CC LD CFLAGS
 33 include $(srctree)/tools/build/Makefile.includ     33 include $(srctree)/tools/build/Makefile.include
 34                                                    34 
 35 HV_KVP_DAEMON_IN := $(OUTPUT)hv_kvp_daemon-in.     35 HV_KVP_DAEMON_IN := $(OUTPUT)hv_kvp_daemon-in.o
 36 $(HV_KVP_DAEMON_IN): FORCE                         36 $(HV_KVP_DAEMON_IN): FORCE
 37         $(Q)$(MAKE) $(build)=hv_kvp_daemon         37         $(Q)$(MAKE) $(build)=hv_kvp_daemon
 38 $(OUTPUT)hv_kvp_daemon: $(HV_KVP_DAEMON_IN)        38 $(OUTPUT)hv_kvp_daemon: $(HV_KVP_DAEMON_IN)
 39         $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS     39         $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
 40                                                    40 
 41 HV_VSS_DAEMON_IN := $(OUTPUT)hv_vss_daemon-in.     41 HV_VSS_DAEMON_IN := $(OUTPUT)hv_vss_daemon-in.o
 42 $(HV_VSS_DAEMON_IN): FORCE                         42 $(HV_VSS_DAEMON_IN): FORCE
 43         $(Q)$(MAKE) $(build)=hv_vss_daemon         43         $(Q)$(MAKE) $(build)=hv_vss_daemon
 44 $(OUTPUT)hv_vss_daemon: $(HV_VSS_DAEMON_IN)        44 $(OUTPUT)hv_vss_daemon: $(HV_VSS_DAEMON_IN)
 45         $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS     45         $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
 46                                                    46 
 47 HV_FCOPY_UIO_DAEMON_IN := $(OUTPUT)hv_fcopy_ui     47 HV_FCOPY_UIO_DAEMON_IN := $(OUTPUT)hv_fcopy_uio_daemon-in.o
 48 $(HV_FCOPY_UIO_DAEMON_IN): FORCE                   48 $(HV_FCOPY_UIO_DAEMON_IN): FORCE
 49         $(Q)$(MAKE) $(build)=hv_fcopy_uio_daem     49         $(Q)$(MAKE) $(build)=hv_fcopy_uio_daemon
 50 $(OUTPUT)hv_fcopy_uio_daemon: $(HV_FCOPY_UIO_D     50 $(OUTPUT)hv_fcopy_uio_daemon: $(HV_FCOPY_UIO_DAEMON_IN)
 51         $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS     51         $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
 52                                                    52 
 53 clean:                                             53 clean:
 54         rm -f $(ALL_PROGRAMS)                      54         rm -f $(ALL_PROGRAMS)
 55         find $(or $(OUTPUT),.) -name '*.o' -de     55         find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete -o -name '\.*.cmd' -delete
 56                                                    56 
 57 install: $(ALL_PROGRAMS)                           57 install: $(ALL_PROGRAMS)
 58         install -d -m 755 $(DESTDIR)$(sbindir)     58         install -d -m 755 $(DESTDIR)$(sbindir); \
 59         install -d -m 755 $(DESTDIR)$(libexecd     59         install -d -m 755 $(DESTDIR)$(libexecdir)/hypervkvpd; \
 60         install -d -m 755 $(DESTDIR)$(sharedst     60         install -d -m 755 $(DESTDIR)$(sharedstatedir); \
 61         for program in $(ALL_PROGRAMS); do \       61         for program in $(ALL_PROGRAMS); do \
 62                 install $$program -m 755 $(DES     62                 install $$program -m 755 $(DESTDIR)$(sbindir);  \
 63         done; \                                    63         done; \
 64         install -m 755 lsvmbus $(DESTDIR)$(sbi     64         install -m 755 lsvmbus $(DESTDIR)$(sbindir); \
 65         for script in $(ALL_SCRIPTS); do \         65         for script in $(ALL_SCRIPTS); do \
 66                 install $$script -m 755 $(DEST     66                 install $$script -m 755 $(DESTDIR)$(libexecdir)/hypervkvpd/$${script%.sh}; \
 67         done                                       67         done
 68                                                    68 
 69 FORCE:                                             69 FORCE:
 70                                                    70 
 71 .PHONY: all install clean FORCE prepare            71 .PHONY: all install clean FORCE prepare
                                                      

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