summaryrefslogtreecommitdiff
path: root/Makefile
blob: 41e6c34c5a7d94933409396013d6b27ef7325f4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PREFIX ?= /usr/local

CFLAGS += -O2 -Wall -Wextra -Wpedantic
LDLIBS += -lX11

TARGET := xkbdlock

SRC := $(wildcard *.c)
OBJ := $(SRC:.c=.o)

all: $(TARGET)

$(TARGET): $(OBJ)

clean:
	rm -f $(TARGET) $(OBJ)

install: all
	install -Dt $(DESTDIR)$(PREFIX)/bin $(TARGET)

uninstall:
	rm -f $(DESTDIR)$(PREFIX)/bin/$(TARGET)

.PHONY: all clean install uninstall