aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2022-05-02 05:22:20 -0700
committerxyz <gky44px1999@gmail.com>2022-05-02 05:22:20 -0700
commit6d9775a54f539d3ca744c0de80f5ff5d9feeb322 (patch)
tree312c3cb07c5dac6658a03dd6700d59296a28104b /Makefile
parentadfb8d852b051c4d498aceeca57b89473b95b51a (diff)
init
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