summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
-rw-r--r--src/main.c2
2 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 86f2e3b..418683d 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,15 @@ endif
CC := gcc
LD := gcc
-CFLAGS = -Wall -Wextra -Os -g
+CFLAGS = -Wall -Wextra -Os -g -std=c99 -pedantic
+ifeq ($(shell uname -s),OpenBSD)
+CFLAGS += -I/usr/local/include
+endif
+
LDFLAGS = -lz
+ifeq ($(shell uname -s),OpenBSD)
+LDFLAGS += -liconv -L/usr/local/lib
+endif
SRCDIR = src
TSTDIR = test
diff --git a/src/main.c b/src/main.c
index 5363985..973bbd2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -60,7 +60,7 @@ static void print_help(void) {
" -v, --version\tDisplay the currently installed version and "
"exit.\n\n"
" -e, --extract\tExtract the contents of the archive. This is "
- "the default.\n"
+ "the default\n\t\t\taction if no mode argument is provided.\n"
" -l, --list\t\tList the contents of the archive.\n\n"
" -o, --output\t\tPath to extract files to.\n"
" -g, --game\t\tGame the archive is from. Required for file "