-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 774 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 774 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
# screenhunter - automated cursor positioning and clicking tool for X11
# See LICENSE file for copyright and license details.
CFLAGS = -std=c99 -s -pedantic -Wall -Wextra -Wfatal-errors -pedantic-errors -O3 -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200809L
CC = gcc $(CFLAGS)
LIBS = -lX11 -lpng -lXtst
PROG = screenhunter
all: $(PROG)
.PHONY: all
$(PROG):
$(CC) -o $(PROG) $(PROG).c $(LIBS)
clean:
rm -f $(PROG)
.PHONY: clean
install: all
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f $(PROG) ${DESTDIR}${PREFIX}/bin
@chmod 755 ${DESTDIR}${PREFIX}/bin/$(PROG)
.PHONY: install
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
@rm -f ${DESTDIR}${PREFIX}/bin/$(PROG)
.PHONY: uninstall