aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-05-31 12:38:42 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-05-31 12:38:42 -0700
commitda6c8857d6bad131635a846e8177e7c00a4c224e (patch)
tree4adf3115388cdee07cdb169642133ef3a7ab2630 /Makefile
parent0443fbb06387138fc88be80104bef102246fdd25 (diff)
Moved utf8 code into a C file, fixed some potential null deref issues
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a107318..c033b25 100644
--- a/Makefile
+++ b/Makefile
@@ -2,14 +2,14 @@ NAME=bp
CC=cc
PREFIX=/usr/local
SYSCONFDIR=/etc
-CFLAGS=-std=c99 -Werror -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L
+CFLAGS=-std=c99 -Werror -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L -flto
CWARN=-Wall -Wpedantic -Wextra -Wsign-conversion -Wtype-limits -Wunused-result -Wnull-dereference
EXTRA=
G=
O=-O3
ALL_FLAGS=$(CFLAGS) -DBP_NAME="\"$(NAME)\"" $(EXTRA) $(CWARN) $(G) $(O)
-CFILES=pattern.c definitions.c utils.c match.c files.c print.c json.c
+CFILES=pattern.c definitions.c utils.c match.c files.c print.c json.c utf8.c
OBJFILES=$(CFILES:.c=.o)
all: $(NAME) bp.1