mirror of
https://github.com/janet-lang/janet
synced 2025-01-23 13:46:52 +00:00
commit
e4c5eb4c76
3
Makefile
3
Makefile
@ -47,6 +47,9 @@ else ifeq ($(UNAME), Linux)
|
|||||||
CLIBS:=$(CLIBS) -lrt -ldl
|
CLIBS:=$(CLIBS) -lrt -ldl
|
||||||
endif
|
endif
|
||||||
# For other unix likes, add flags here!
|
# For other unix likes, add flags here!
|
||||||
|
ifeq ($(UNAME),Haiku)
|
||||||
|
LDFLAGS=-Wl,--export-dynamic
|
||||||
|
endif
|
||||||
|
|
||||||
$(shell mkdir -p build/core build/mainclient build/webclient build/boot)
|
$(shell mkdir -p build/core build/mainclient build/webclient build/boot)
|
||||||
all: $(JANET_TARGET) $(JANET_LIBRARY)
|
all: $(JANET_TARGET) $(JANET_LIBRARY)
|
||||||
|
12
README.md
12
README.md
@ -79,6 +79,18 @@ make test
|
|||||||
make repl
|
make repl
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### 32-bit Haiku
|
||||||
|
|
||||||
|
32-bit Haiku build instructions are the same as the unix-like build instructions,
|
||||||
|
but you need to specify an alternative compiler, such as `gcc-x86`.
|
||||||
|
|
||||||
|
```
|
||||||
|
cd somewhere/my/projects/janet
|
||||||
|
make CC=gcc-x86
|
||||||
|
make test
|
||||||
|
make repl
|
||||||
|
```
|
||||||
|
|
||||||
### FreeBSD
|
### FreeBSD
|
||||||
|
|
||||||
FreeBSD build instructions are the same as the unix-like build instuctions,
|
FreeBSD build instructions are the same as the unix-like build instuctions,
|
||||||
|
@ -51,6 +51,7 @@ extern "C" {
|
|||||||
|| defined(__FreeBSD__) || defined(__DragonFly__) \
|
|| defined(__FreeBSD__) || defined(__DragonFly__) \
|
||||||
|| defined(__FreeBSD_kernel__) \
|
|| defined(__FreeBSD_kernel__) \
|
||||||
|| defined(__GNU__) /* GNU/Hurd */ \
|
|| defined(__GNU__) /* GNU/Hurd */ \
|
||||||
|
|| defined(__HAIKU__) \
|
||||||
|| defined(__linux__) \
|
|| defined(__linux__) \
|
||||||
|| defined(__NetBSD__) \
|
|| defined(__NetBSD__) \
|
||||||
|| defined(__OpenBSD__) \
|
|| defined(__OpenBSD__) \
|
||||||
|
Loading…
Reference in New Issue
Block a user