Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Bjarke Istrup Pedersen | 3eb2094 | 2014-02-09 11:41:52 +0000 | [diff] [blame] | 2 | # Makefile for Hyper-V tools |
| 3 | |
| 4 | CC = $(CROSS_COMPILE)gcc |
Bjarke Istrup Pedersen | 3eb2094 | 2014-02-09 11:41:52 +0000 | [diff] [blame] | 5 | WARNINGS = -Wall -Wextra |
Weibing Zhang | 822114a | 2016-11-06 13:14:13 -0800 | [diff] [blame] | 6 | CFLAGS = $(WARNINGS) -g $(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 |