Bjarke Istrup Pedersen | 3eb2094 | 2014-02-09 11:41:52 +0000 | [diff] [blame] | 1 | # Makefile for Hyper-V tools |
| 2 | |
| 3 | CC = $(CROSS_COMPILE)gcc |
| 4 | PTHREAD_LIBS = -lpthread |
| 5 | WARNINGS = -Wall -Wextra |
Dexuan Cui | b4affbb | 2015-03-18 12:29:26 -0700 | [diff] [blame] | 6 | CFLAGS = $(WARNINGS) -g $(PTHREAD_LIBS) $(shell getconf LFS_CFLAGS) |
Bjarke Istrup Pedersen | 3eb2094 | 2014-02-09 11:41:52 +0000 | [diff] [blame] | 7 | |
Kamal Mostafa | 50fe6dd | 2016-01-27 22:29:33 -0800 | [diff] [blame] | 8 | CFLAGS += -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include |
| 9 | |
Matej Muzila | ca04455 | 2014-12-28 15:54:13 +0100 | [diff] [blame] | 10 | all: hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon |
Bjarke Istrup Pedersen | 3eb2094 | 2014-02-09 11:41:52 +0000 | [diff] [blame] | 11 | %: %.c |
| 12 | $(CC) $(CFLAGS) -o $@ $^ |
| 13 | |
| 14 | clean: |
Matej Muzila | ca04455 | 2014-12-28 15:54:13 +0100 | [diff] [blame] | 15 | $(RM) hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon |