From 33a163c7dae687fba9691c184fe719b0c833acc2 Mon Sep 17 00:00:00 2001 From: jakob Date: Sat, 4 Mar 2017 19:00:34 -0500 Subject: Added some OpenBSD-specific things to the Makefile --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.3