summaryrefslogtreecommitdiff
path: root/Makefile
blob: de675f1f3c1acbf8a493bb1b626d5249ac0f0790 (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
LDFLAGS += -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