xref: /linux/tools/hv/Makefile (revision d218439feccafaa3e852bbaecc0d9f6110096b65)
1# SPDX-License-Identifier: GPL-2.0
2# Makefile for Hyper-V tools
3
4CC = $(CROSS_COMPILE)gcc
5WARNINGS = -Wall -Wextra
6CFLAGS = $(WARNINGS) -g $(shell getconf LFS_CFLAGS)
7
8CFLAGS += -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include
9
10all: hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
11%: %.c
12	$(CC) $(CFLAGS) -o $@ $^
13
14clean:
15	$(RM) hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
16