summaryrefslogtreecommitdiff
path: root/contrib/hgsh/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/hgsh/Makefile')
-rw-r--r--contrib/hgsh/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/hgsh/Makefile b/contrib/hgsh/Makefile
new file mode 100644
index 0000000..966158f
--- /dev/null
+++ b/contrib/hgsh/Makefile
@@ -0,0 +1,13 @@
+CC := gcc
+CFLAGS := -g -O2 -Wall -Werror
+
+prefix ?= /usr/bin
+
+hgsh: hgsh.o
+ $(CC) -o $@ $<
+
+install: hgsh
+ install -m755 hgsh $(prefix)
+
+clean:
+ rm -f *.o hgsh