mirror of
https://github.com/janet-lang/janet
synced 2025-02-02 10:19:10 +00:00
Update natives makefile.
This commit is contained in:
parent
f8bda3af51
commit
644219a8a5
@ -21,6 +21,11 @@
|
|||||||
CFLAGS=-std=c99 -Wall -Wextra -I../../src/include -s -O3
|
CFLAGS=-std=c99 -Wall -Wextra -I../../src/include -s -O3
|
||||||
TARGET=hello.so
|
TARGET=hello.so
|
||||||
|
|
||||||
|
UNAME:=$(shell uname -s)
|
||||||
|
ifeq ($(UNAME), Darwin)
|
||||||
|
CFLAGS:=$(CFLAGS) -undefined dynamic_lookup
|
||||||
|
endif
|
||||||
|
|
||||||
SOURCES=main.c
|
SOURCES=main.c
|
||||||
|
|
||||||
$(TARGET): $(SOURCES)
|
$(TARGET): $(SOURCES)
|
||||||
|
@ -21,6 +21,12 @@
|
|||||||
CFLAGS=-std=c99 -Wall -Wextra -I../../src/include -O2 -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -shared -fpic
|
CFLAGS=-std=c99 -Wall -Wextra -I../../src/include -O2 -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -shared -fpic
|
||||||
TARGET=sqlite3.so
|
TARGET=sqlite3.so
|
||||||
|
|
||||||
|
# MacOS specifics
|
||||||
|
UNAME:=$(shell uname -s)
|
||||||
|
ifeq ($(UNAME), Darwin)
|
||||||
|
CFLAGS:=$(CFLAGS) -undefined dynamic_lookup
|
||||||
|
endif
|
||||||
|
|
||||||
sqlite-autoconf-3230100/sqlite3.%:
|
sqlite-autoconf-3230100/sqlite3.%:
|
||||||
curl https://www.sqlite.org/2018/sqlite-autoconf-3230100.tar.gz | tar -xvz
|
curl https://www.sqlite.org/2018/sqlite-autoconf-3230100.tar.gz | tar -xvz
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user