samples: mei: use hostprogs kbuild constructs
[linux-2.6-microblaze.git] / samples / mei / Makefile
index c7e52e9..27f37ef 100644 (file)
@@ -1,10 +1,10 @@
 # SPDX-License-Identifier: GPL-2.0
-CC := $(CROSS_COMPILE)gcc
-CFLAGS := -I../../usr/include
+# Copyright (c) 2012-2019, Intel Corporation. All rights reserved.
 
-PROGS := mei-amt-version
+hostprogs-y := mei-amt-version
 
-all: $(PROGS)
+HOSTCFLAGS_mei-amt-version.o += -I$(objtree)/usr/include
 
-clean:
-       rm -fr $(PROGS)
+always := $(hostprogs-y)
+
+all: mei-amt-version