Paul Menzel | ccc2af1 | 2015-10-12 17:46:16 +0200 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
| 4 | ## Copyright (C) 2012 The ChromiumOS Authors. All rights reserved. |
| 5 | ## |
| 6 | ## This program is free software; you can redistribute it and/or modify |
| 7 | ## it under the terms of the GNU General Public License as published by |
| 8 | ## the Free Software Foundation; version 2 of the License. |
| 9 | ## |
| 10 | ## This program is distributed in the hope that it will be useful, |
| 11 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | ## GNU General Public License for more details. |
| 14 | ## |
Paul Menzel | ccc2af1 | 2015-10-12 17:46:16 +0200 | [diff] [blame] | 15 | |
| 16 | PROGRAM = intelvbttool |
| 17 | CC ?= gcc |
Patrick Rudolph | 17856b7 | 2017-11-11 10:17:53 +0100 | [diff] [blame] | 18 | CFLAGS ?= -O2 -g |
Paul Menzel | ccc2af1 | 2015-10-12 17:46:16 +0200 | [diff] [blame] | 19 | CFLAGS += -Wall -Werror |
Patrick Rudolph | 17856b7 | 2017-11-11 10:17:53 +0100 | [diff] [blame] | 20 | CFLAGS += -I../../src/commonlib/include |
Paul Menzel | ccc2af1 | 2015-10-12 17:46:16 +0200 | [diff] [blame] | 21 | |
| 22 | all: $(PROGRAM) |
| 23 | |
Patrick Rudolph | 17856b7 | 2017-11-11 10:17:53 +0100 | [diff] [blame] | 24 | $(PROGRAM): $(PROGRAM).c |
Paul Menzel | ccc2af1 | 2015-10-12 17:46:16 +0200 | [diff] [blame] | 25 | $(CC) $(CFLAGS) $(CPPFLAGS) $(PROGRAM).c -o $(PROGRAM) |
| 26 | |
| 27 | clean: |
| 28 | rm -f $(PROGRAM) junit.xml |
| 29 | |
| 30 | distclean: clean |
| 31 | |
| 32 | .PHONY: all clean distclean |