1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-18 14:44:48 +00:00

Merge pull request #36 from charles-l/master

Update makefile for OpenBSD
This commit is contained in:
Calvin Rose 2019-02-15 19:07:10 -05:00 committed by GitHub
commit 0dc1217d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ JANET_BUILD?="\"$(shell git log --pretty=format:'%h' -n 1)\""
CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -O2 -fvisibility=hidden \
-DJANET_BUILD=$(JANET_BUILD)
CLIBS=-lm -ldl
CLIBS=-lm
JANET_TARGET=build/janet
JANET_LIBRARY=build/libjanet.so
JANET_PATH?=/usr/local/lib/janet
@ -42,9 +42,12 @@ LDCONFIG:=ldconfig
ifeq ($(UNAME), Darwin)
# Add other macos/clang flags
LDCONFIG:=
CLIBS:=$(CLIBS) -ldl
else ifeq ($(UNAME), OpenBSD)
# pass ...
else
CFLAGS:=$(CFLAGS) -rdynamic
CLIBS:=$(CLIBS) -lrt
CLIBS:=$(CLIBS) -lrt -ldl
endif
$(shell mkdir -p build/core build/mainclient build/webclient build/boot)