Skip to content

Commit

Permalink
easing freebsd build approach.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Jan 15, 2024
1 parent 5c3d603 commit 7abdebe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# TRAGET may be "x86_64" or "x86" or "aarch64"
# TARGET may be "x86_64" or "x86" or "aarch64"
TARGET = x86_64
OS = $(shell uname -s)
# BUILD can be "debug" or "release"
BUILD = debug
BUILD_DIR = .
Expand Down Expand Up @@ -47,6 +48,13 @@ ifeq (aarch64, $(TARGET))
DASM_ARCH = aarch64
DASM_FLAGS = -M
endif
ifeq (FreeBSD, $(OS))
CC=clang
BUILD_CC=$(CC)
override CFLAGS += -I/usr/local/include
override BUILD_CFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib -lutil
endif

ifeq (yes, $(HAVE_LLVM))
override CFLAGS += -DHAVE_LLVM
Expand Down

0 comments on commit 7abdebe

Please sign in to comment.