summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Menzel <paulepanter@users.sourceforge.net>2015-10-12 17:46:16 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-10-24 00:27:18 +0200
commitccc2af14c1e0f30ae86d916f33332557bc02b83a (patch)
tree6f6dcc74a10c11cf13f38f8affb397c2d4bfc405
parentae3adffb7d67d85deb82f46455bcffa6b0e49b42 (diff)
downloadcoreboot-ccc2af14c1e0f30ae86d916f33332557bc02b83a.tar.gz
coreboot-ccc2af14c1e0f30ae86d916f33332557bc02b83a.tar.bz2
coreboot-ccc2af14c1e0f30ae86d916f33332557bc02b83a.zip
intelvbttool: Add Makefile
Add minimal Makefile based on cbmem’s Makefile. The make target `junit.xml` is removed as this is handled differently since commit de9adebb (Add junit.xml code to top Makefile.inc instead of utils). Also the `junit.xml` is removed in the make target `clean`. Additionally, the make target `distclean` is added, as the current junit.xml code in the top `Makefile.inc` requires that. Change-Id: I164b1f7733505bca6248d0711d7ad71d635fa926 Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-on: http://review.coreboot.org/11876 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins)
-rw-r--r--util/intelvbttool/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/util/intelvbttool/Makefile b/util/intelvbttool/Makefile
new file mode 100644
index 000000000000..1793c4423b25
--- /dev/null
+++ b/util/intelvbttool/Makefile
@@ -0,0 +1,35 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2012 The ChromiumOS Authors. All rights reserved.
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; version 2 of the License.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc.
+##
+
+PROGRAM = intelvbttool
+CC ?= gcc
+CFLAGS ?= -O2
+CFLAGS += -Wall -Werror
+
+all: $(PROGRAM)
+
+$(PROGRAM):
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(PROGRAM).c -o $(PROGRAM)
+
+clean:
+ rm -f $(PROGRAM) junit.xml
+
+distclean: clean
+
+.PHONY: all clean distclean