blob: c6c7977ac75deca1b0e818b1bf0d0d3ea21ed037 (
plain)
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
|
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
build ?= release
-prefix ?= /usr/local
+prefix ?= /usr
bindir ?= $(prefix)/bin
incdir ?= $(prefix)/include
libdir ?= $(prefix)/lib
@@ -11,7 +11,7 @@
# Compiler flags for various configurations:
-CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter
+CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter
ifeq "$(CC)" "clang"
CFLAGS += -Wunreachable-code
@@ -22,16 +22,6 @@
LDFLAGS += -Wl,--gc-sections
endif
-ifeq "$(build)" "debug"
-CFLAGS += -g
-else ifeq "$(build)" "sanitize"
-CFLAGS += -pipe -g -fsanitize=address -fno-omit-frame-pointer
-LDFLAGS += -fsanitize=address
-else
-CFLAGS += -Os
-LDFLAGS += -Wl,-s
-endif
-
# You shouldn't need to edit anything below here.
OUT := build/$(build)
|