tune makefile for openbsd

This commit is contained in:
Wolfgang Hottgenroth 2021-02-10 15:14:39 +01:00
parent 433f69ed74
commit 8c8b8e838e

View File

@ -15,6 +15,12 @@ CFLAGS = $(C_INCLUDES) -Wall -Werror -std=c99
LDFLAGS = -lconfig LDFLAGS = -lconfig
TARGET = sink20169 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) all: $(BUILD_DIR)/$(TARGET)
OBJECTS = $(addprefix $(BUILD_DIR)/,$(notdir $(C_SOURCES:.c=.o))) OBJECTS = $(addprefix $(BUILD_DIR)/,$(notdir $(C_SOURCES:.c=.o)))