From 2497535f8cb72bab8a2e3a9dbecd2fec4dae2eb3 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 27 Oct 2020 22:51:52 +0900 Subject: [PATCH] check FreeBSD in commom.mk --- common.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common.mk b/common.mk index ec7d0e6..29cd650 100644 --- a/common.mk +++ b/common.mk @@ -32,6 +32,12 @@ ifeq ($(UNAME_S),OpenBSD) CFLAGS+=-I/usr/local/include LDFLAGS+=-L/usr/local/lib endif +ifeq ($(UNAME_S),FreeBSD) + OS=freebsd + CXX?=clang++ + CFLAGS+=-I/usr/local/include + LDFLAGS+=-L/usr/local/lib +endif ARCH?=$(shell uname -m) ifneq ($(findstring $(ARCH),x86_64/amd64),)