aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 0db7032e20eaf8dbe48a128a1659ce25388941a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# edit source code from: 
# https://github.com/BlueCannonBall/XAim
# https://git.suckless.org/dwm

CC = gcc
CFLAGS = -g -Wall -lX11
PREFIX = /usr/local

xcross: xcross.c
	$(CC) $(CFLAGS) -o $@ $<

clean:
	rm -f xcross

install:
	mkdir -p ${DESTDIR}${PREFIX}/bin
	cp -f xcross ${DESTDIR}${PREFIX}/bin
	chmod 755 ${DESTDIR}${PREFIX}/bin/xcross

uninstall:
	rm -f ${DESTDIR}${PREFIX}/bin/xcross

.PHONY: clean install uninstall