summaryrefslogtreecommitdiff
path: root/util/ectool/Makefile
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2009-04-23 22:22:47 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2009-04-23 22:22:47 +0000
commit424638e7bbd7b47118ed515f6fb32162dbd0c201 (patch)
tree28197da5a390f37a377acad90dbd09e8ec26fae8 /util/ectool/Makefile
parent06db2c44825d5a69bf1139c1348ca95296ccf453 (diff)
downloadcoreboot-424638e7bbd7b47118ed515f6fb32162dbd0c201.tar.xz
Add 'install' target for ectool (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4199 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/ectool/Makefile')
-rw-r--r--util/ectool/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/util/ectool/Makefile b/util/ectool/Makefile
index d799cee77f..1493a0ce6b 100644
--- a/util/ectool/Makefile
+++ b/util/ectool/Makefile
@@ -19,16 +19,22 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
-CC=gcc
-CFLAGS=-O2 -Wall -W
+CC = gcc
+CFLAGS = -O2 -Wall -W
+PROGRAM = ectool
+INSTALL = /usr/bin/install
+PREFIX = /usr/local
-all: ectool
+all: $(PROGRAM)
-ectool: ec.o ectool.o
+$(PROGRAM): ec.o ectool.o
$(CC) $(CFLAGS) -o $@ $^
+install: $(PROGRAM)
+ $(INSTALL) $(PROGRAM) $(PREFIX)/sbin
+
clean:
- rm *.o ectool
+ rm *.o $(PROGRAM)
%.o: %.c
$(CC) $(CFLAGS) -c $^ -I. -o $@