summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 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