aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 522ea68f43d787c0bd274658b1b01b9456a9d8c8 (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
.POSIX:

WARNINGS = -Wall -Wextra -Werror -Wpedantic

CC = cc
CFLAGS = $(WARNINGS) -pipe -O3 -march=native -mtune=native

PREFIX = /usr/local
DPREFIX = $(DESTDIR)$(PREFIX)

all: grab
grab: grab.c

debug:
	$(CC) $(WARNINGS) -DGRAB_DEBUG -g -ggdb3 -o grab grab.c

install:
	mkdir -p $(DPREFIX)/bin $(DPREFIX)/share/man/man1 
	cp grab $(DPREFIX)/bin
	cp grab.1 $(DPREFIX)/share/man/man1

clean:
	rm -f grab