summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-03-04 19:00:34 -0500
committerjakob <jakob@memeware.net>2017-03-04 19:00:34 -0500
commit33a163c7dae687fba9691c184fe719b0c833acc2 (patch)
tree159b976274864a472bd1d798d206a875d9ff5f95 /Makefile
parentc6e28ae622cfd86f5b0ca796d27953ac8ecd37b1 (diff)
Added some OpenBSD-specific things to the Makefile
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