aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorErik Liodden <eriklio@stud.ntnu.no>2017-07-15 16:26:19 +0200
committerErik Liodden <eriklio@stud.ntnu.no>2017-07-15 16:35:10 +0200
commit1132229102f88a17b6745c3b4ae86a55c59c8b69 (patch)
tree8eac334655616941635706d4e3e216f9da23e435 /src/Makefile
parent19fec861fd75e133088ba2709dfdbc1fce3adbe0 (diff)
downloadbinary-chopper-1132229102f88a17b6745c3b4ae86a55c59c8b69.tar.gz
add error handling
Better error handling by utilizing `errno`. Error has the following form void error(int err, char *fmt, ...); and calling it will exit the program with status 1. `int err` corresponds to `errno` defined in <errno.h>.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index fa64d3a..794fe6b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -2,7 +2,7 @@ CC=gcc-6
OUTPUT_OPTION=-MMD -MP -o $@
CFLAGS += -Wall -Ofast --std=c99 -Wvla -I../include
-MODULES := options file
+MODULES := options file error
CFLAGS += $(patsubst %,-I%,$(MODULES))
LIBS :=