summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8c17af6..61fd84f 100644
--- a/Makefile
+++ b/Makefile
@@ -2,19 +2,25 @@ RM := rm -f
CFLAGS = \
-D_FORTIFY_SOURCE=2 \
- -D_GNU_SOURCE \
+ -D_POSIX_SOURCE=199506 \
-Iinclude \
-O3 \
-Wall \
-Wextra \
+ -Wformat=2 \
-Wmissing-declarations \
+ -Wmissing-include-dirs \
+ -Wnull-dereference \
-Wpedantic \
+ -Wpointer-arith \
+ -Wstrict-overflow=5 \
-g \
-o$(@) \
-std=c99
OBJS := \
src/chkpar.o \
+ src/cpy.o \
src/exi.o \
src/getsum.o \
src/hlp.o \
@@ -29,6 +35,8 @@ BIN := agbsum
$(BIN): $(OBJS)
$(CC) -o$(BIN) $(OBJS)
+$(OBJS): include/agbsum.h
+
.PHONY: clean install purge
clean: