summaryrefslogtreecommitdiff
path: root/Makefile
blob: 413012e6550987df0d958d437930c1a72e143dbc (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
27
28
29
# xmouseless
VERSION = 0.1.1
CC      = cc
CFLAGS  = -Wall
LDFLAGS = -lX11 -lXtst -lpthread

PREFIX = /usr/local

SRC = xmouseless.c
BIN = xmouseless

all: config.h build

build:
	$(CC) $(CFLAGS) -o $(BIN) $(SRC) $(LDFLAGS)

clean:
	rm -f $(BIN)

config.h:
	cp config.def.h config.h

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

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