summaryrefslogtreecommitdiff
path: root/Makefile
blob: f8e86980d9c66f37e149ef2770789640d1d6159f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# xmouseless
VERSION = 0.1.1
CC      = /usr/bin/gcc
CFLAGS  = -Wall -g
LDFLAGS = -lX11 -lXtst -lpthread

PREFIX = /usr/local

SRC = xmouseless.c
BIN = xmouseless

all: $(BIN)

$(BIN): $(SRC) config.h
	$(CC) $(CFLAGS) -o $(BIN) $(SRC) $(LDFLAGS)

clean:
	rm -f $(BIN)

install: all
	mkdir -p $(PREFIX)/bin
	cp -f $(BIN) $(PREFIX)/bin
	chmod 755 $(PREFIX)/bin/$(BIN)

uninstall:
	rm -f $(PREFIX)/bin/$(BIN)