summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 46f3c9f..360952d 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,8 @@ PROGRAM = flashrom
CC = gcc
STRIP = strip
+INSTALL = /usr/bin/install
+PREFIX = /usr/local
#CFLAGS = -O2 -g -Wall -Werror
CFLAGS = -Os -Wall -Werror -DDISABLE_DOC # -DTS5300
LDFLAGS = -lpci -lz -static
@@ -45,6 +47,9 @@ pciutils:
rm -f .test.c .test; exit 1)
@rm -f .test.c .test
+install: $(PROGRAM)
+ $(INSTALL) flashrom $(PREFIX)/bin
+
.PHONY: all clean distclean dep pciutils
-include .dependencies
OpenPOWER on IntegriCloud