core out Makefile, add freebsd building

This commit is contained in:
Colin Davidson
2022-03-14 05:23:48 -07:00
parent 4474144c24
commit 8605833781
2 changed files with 15 additions and 76 deletions
+10
View File
@@ -41,6 +41,13 @@ config_darwin() {
LDFLAGS="$LDFLAGS -lLLVM-C"
}
config_freebsd() {
LLVM_CONFIG=/usr/local/bin/llvm-config11
CFLAGS="$CFLAGS $($LLVM_CONFIG --cxxflags --ldflags)"
LDFLAGS="$LDFLAGS $($LLVM_CONFIG --libs core native --system-libs)"
}
config_openbsd() {
LLVM_CONFIG=/usr/local/bin/llvm-config
@@ -108,6 +115,9 @@ Darwin)
OpenBSD)
config_openbsd
;;
FreeBSD)
config_freebsd
;;
*)
panic "Platform unsupported!"
esac