aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 638e08d62a74ec9bdaa2feb7da96b04f834cbc16 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
CFLAGS_dev:= \
	-std=gnu17 -Wall -Wextra \
	-Werror=conversion \
	-Werror=sign-conversion \
	-Werror=float-conversion \
	-Werror=old-style-definition \
	-Werror=strict-prototypes \
	-Werror=missing-prototypes \
	-Werror=implicit-function-declaration \
	-Werror=missing-declarations \
	-Werror=return-type \
	-Werror=pointer-arith \
	-Werror=vla \
	-Werror=incompatible-pointer-types \
	-Werror=int-conversion \
	-Werror=int-conversion \
	-Werror=format=2 \
	-Werror=overflow \
	-Werror=shift-count-overflow \
	-Werror=init-self \
	-Werror=shadow \
	-Werror=redundant-decls \
	-Werror=missing-field-initializers \
	-Werror=write-strings \
	-Werror=date-time \
	-Werror=nested-externs \
	-Werror=endif-labels \
	-Werror=undef \
	-Wmissing-include-dirs \
	-Wfloat-equal \
	-Winline \
	-Wmissing-noreturn \
	-Werror=implicit-fallthrough \
	-Werror=shift-overflow

CC?=gcc
CFLAGS?=-O2 -flto -ggdb

pgbak: pgbak.c
	$(CC) $(CFLAGS_dev) $(CFLAGS) $< -o $@