aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 8cc268c422f1f631480fc2986911b061119b133f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC = gcc
CFLAGS = -g -Wall -lX11
PREFIX = /usr/local

xcross: xcross.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