summaryrefslogtreecommitdiff
path: root/Makefile
blob: ded45be33b808ab6ffdafa3f977cda06c5430ea1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Makefile, part of XGrabControl.
# (c) 2011, en passant development.

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 noxg $(DESTDIR)/bin/
	ln -sf noxg $(DESTDIR)/bin/noxg

clean:
	rm -f $(SOFILE)