1# Makefile for Hyper-V tools
2
3CC = $(CROSS_COMPILE)gcc
4PTHREAD_LIBS = -lpthread
5WARNINGS = -Wall -Wextra
6CFLAGS = $(WARNINGS) -g $(PTHREAD_LIBS) $(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