cbmem: Makefile: Add install target

Change-Id: Ib20481e43e6ca5b56c630cdc0eb7b1b01311cbb6
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Reviewed-on: https://review.coreboot.org/12404
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2015-11-11 05:40:11 +01:00 committed by Martin Roth
parent 4af3655622
commit c2b51085ca
1 changed files with 11 additions and 5 deletions

View File

@ -13,11 +13,13 @@
## GNU General Public License for more details.
##
PROGRAM = cbmem
ROOT = ../../src
CC ?= $(CROSS_COMPILE)gcc
CFLAGS ?= -O2
CFLAGS += -Wall -Werror
PROGRAM = cbmem
ROOT = ../../src
CC ?= $(CROSS_COMPILE)gcc
INSTALL ?= /usr/bin/install
PREFIX ?= /usr/local
CFLAGS ?= -O2
CFLAGS += -Wall -Werror
CPPFLAGS += -I $(ROOT)/commonlib/include
OBJS = $(PROGRAM).o
@ -29,6 +31,10 @@ $(PROGRAM): $(OBJS)
clean:
rm -f $(PROGRAM) *.o *~ junit.xml
install: $(PROGRAM)
$(INSTALL) -d $(DESTDIR)$(PREFIX)/sbin/
$(INSTALL) cbmem $(DESTDIR)$(PREFIX)/sbin/
distclean: clean
rm -f .dependencies