From 7dd1e7317c0b693eac108c7e3ca022ae04fe248b Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 10 Feb 2021 15:14:39 +0100 Subject: [PATCH] tune makefile for openbsd --- sink/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sink/Makefile b/sink/Makefile index 8af2cac..a98f1be 100644 --- a/sink/Makefile +++ b/sink/Makefile @@ -15,6 +15,12 @@ CFLAGS = $(C_INCLUDES) -Wall -Werror -std=c99 LDFLAGS = -lconfig TARGET = sink20169 +UNAME_S := $(shell uname -s) +ifeq ($(UNAME_S),OpenBSD) + CFLAGS += -I/usr/local/include + LDFLAGS += -L/usr/local/lib +endif + all: $(BUILD_DIR)/$(TARGET) OBJECTS = $(addprefix $(BUILD_DIR)/,$(notdir $(C_SOURCES:.c=.o)))