summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a9110e7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+CC = gcc
+CFLAGS = -Wall -Wextra -O2
+LDFLAGS = -lX11 -lXfixes -lXrender
+
+TARGET = xmagnify
+
+all: $(TARGET)
+
+$(TARGET): main.o
+ $(CC) main.o -o $(TARGET) $(LDFLAGS)
+
+main.o: main.c
+ $(CC) $(CFLAGS) -c main.c -o main.o
+
+clean:
+ rm -f main.o $(TARGET)
+
+install: $(TARGET)
+ install -m 755 $(TARGET) /usr/local/bin/
+
+uninstall:
+ rm -f /usr/local/bin/$(TARGET)
+
+.PHONY: all clean install uninstall \ No newline at end of file