summaryrefslogtreecommitdiff
path: root/util/cbmem
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbmem')
-rw-r--r--util/cbmem/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/util/cbmem/Makefile b/util/cbmem/Makefile
index 113c690545..ef45bed041 100644
--- a/util/cbmem/Makefile
+++ b/util/cbmem/Makefile
@@ -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