summaryrefslogtreecommitdiffstats
path: root/chrome/installer/mac/third_party/bsdiff/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/installer/mac/third_party/bsdiff/Makefile')
-rw-r--r--chrome/installer/mac/third_party/bsdiff/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/installer/mac/third_party/bsdiff/Makefile b/chrome/installer/mac/third_party/bsdiff/Makefile
new file mode 100644
index 0000000..a522607
--- /dev/null
+++ b/chrome/installer/mac/third_party/bsdiff/Makefile
@@ -0,0 +1,15 @@
+CFLAGS += -O3 -lbz2
+
+PREFIX ?= /usr/local
+INSTALL_PROGRAM ?= ${INSTALL} -c -s -m 555
+INSTALL_MAN ?= ${INSTALL} -c -m 444
+
+all: bsdiff bspatch
+bsdiff: bsdiff.c
+bspatch: bspatch.c
+
+install:
+ ${INSTALL_PROGRAM} bsdiff bspatch ${PREFIX}/bin
+.ifndef WITHOUT_MAN
+ ${INSTALL_MAN} bsdiff.1 bspatch.1 ${PREFIX}/man/man1
+.endif