aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..06698e0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+CC = gcc
+CFLAGS = -g -Wall -lX11
+PREFIX = /usr/local
+
+xcross: main.c
+ $(CC) $(CFLAGS) -o $@ $<
+
+clean:
+ rm -f xcross
+
+install:
+ cp -f xcross ${DESTDIR}${PREFIX}/bin
+ chmod 755 ${DESTDIR}${PREFIX}/bin/xcross
+
+uninstall:
+ rm -f ${DESTDIR}${PREFIX}/bin/xcross
+
+.PHONY: clean install uninstall