blob: a8c4644022a6b6cfb5f46785847178ed28159e62 [file] [log] [blame]
Bjarke Istrup Pedersen3eb20942014-02-09 11:41:52 +00001# Makefile for Hyper-V tools
2
3CC = $(CROSS_COMPILE)gcc
4PTHREAD_LIBS = -lpthread
5WARNINGS = -Wall -Wextra
Dexuan Cuib4affbb2015-03-18 12:29:26 -07006CFLAGS = $(WARNINGS) -g $(PTHREAD_LIBS) $(shell getconf LFS_CFLAGS)
Bjarke Istrup Pedersen3eb20942014-02-09 11:41:52 +00007
Kamal Mostafa50fe6dd2016-01-27 22:29:33 -08008CFLAGS += -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include
9
Matej Muzilaca044552014-12-28 15:54:13 +010010all: hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
Bjarke Istrup Pedersen3eb20942014-02-09 11:41:52 +000011%: %.c
12 $(CC) $(CFLAGS) -o $@ $^
13
14clean:
Matej Muzilaca044552014-12-28 15:54:13 +010015 $(RM) hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon