summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cc16ea1..a767fe0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,21 @@
# Makefile, part of XGrabControl.
# (c) 2011, en passant development.
-SRCFILES=grab-replacement.c
-SOFILE=libXGrabControl.so
+SRCFILES = grab-replacement.c
+SOFILE = libXGrabControl.so
+
+DESTDIR := /usr/local
+
all: $(SOFILE)
$(SOFILE): $(SRCFILES) Makefile
gcc -Wall -Wextra -shared -Os -o $(SOFILE) $(SRCFILES)
+install: all
+ cp $(SOFILE) $(DESTDIR)/lib/
+ cp XGrabControl $(DESTDIR)/bin/
+ ln -s XGrabControl $(DESTDIR)/bin/noxg
+
clean:
rm -f $(SOFILE)