tune makefile for openbsd

This commit is contained in:
Wolfgang Hottgenroth 2021-02-10 15:14:39 +01:00
parent b3077333af
commit 7dd1e7317c

View File

@ -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)))