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
This commit is contained in:
parent
06db2c4482
commit
424638e7bb
|
@ -21,14 +21,20 @@
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -O2 -Wall -W
|
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 $@ $^
|
$(CC) $(CFLAGS) -o $@ $^
|
||||||
|
|
||||||
|
install: $(PROGRAM)
|
||||||
|
$(INSTALL) $(PROGRAM) $(PREFIX)/sbin
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm *.o ectool
|
rm *.o $(PROGRAM)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(CFLAGS) -c $^ -I. -o $@
|
$(CC) $(CFLAGS) -c $^ -I. -o $@
|
||||||
|
|
Loading…
Reference in New Issue