-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 705 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 705 Bytes
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
30
31
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man/man1
CFLAGS += -std=c99 -march=native -O3 -pipe
CFLAGS += -Wall
CFLAGS += -Wconversion
CFLAGS += -Wdouble-promotion
CFLAGS += -Wextra
CFLAGS += -Wmissing-prototypes
CFLAGS += -Wold-style-definition
CFLAGS += -Wpedantic
CFLAGS += -Wshadow
all: xhidecursor
xhidecursor: main.c Makefile
$(CC) $(CFLAGS) -o $@ $< -lX11 -lXfixes -lXi
install: all
install -D xhidecursor $(DESTDIR)$(BINDIR)/xhidecursor
install -D -m 644 xhidecursor.1 $(DESTDIR)$(MANDIR)/xhidecursor.1
uninstall:
rm -f $(DESTDIR)$(BINDIR)/xhidecursor
rm -f $(DESTDIR)$(MANDIR)/xhidecursor.1
clean:
rm -f xhidecursor
.PHONY: all install uninstall clean