ARM: dts: uniphier: add MIO DMAC nodes
[linux/fpc-iii.git] / tools / hv / Makefile
blob5db5e62cebdaeb3277e927ec396abd3ca412218e
1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for Hyper-V tools
4 WARNINGS = -Wall -Wextra
5 CFLAGS = $(WARNINGS) -g $(shell getconf LFS_CFLAGS)
7 CFLAGS += -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include
9 sbindir ?= /usr/sbin
10 libexecdir ?= /usr/libexec
11 sharedstatedir ?= /var/lib
13 ALL_PROGRAMS := hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
15 ALL_SCRIPTS := hv_get_dhcp_info.sh hv_get_dns_info.sh hv_set_ifconfig.sh
17 all: $(ALL_PROGRAMS)
19 %: %.c
20 $(CC) $(CFLAGS) -o $@ $^
22 clean:
23 $(RM) hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
25 install: all
26 install -d -m 755 $(DESTDIR)$(sbindir); \
27 install -d -m 755 $(DESTDIR)$(libexecdir)/hypervkvpd; \
28 install -d -m 755 $(DESTDIR)$(sharedstatedir); \
29 for program in $(ALL_PROGRAMS); do \
30 install $$program -m 755 $(DESTDIR)$(sbindir); \
31 done; \
32 install -m 755 lsvmbus $(DESTDIR)$(sbindir); \
33 for script in $(ALL_SCRIPTS); do \
34 install $$script -m 755 $(DESTDIR)$(libexecdir)/hypervkvpd/$${script%.sh}; \
35 done