1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-23 13:43:16 +00:00

Update natives makefile.

This commit is contained in:
Calvin Rose 2018-05-22 20:45:52 -04:00
parent f8bda3af51
commit 644219a8a5
2 changed files with 11 additions and 0 deletions

View File

@ -21,6 +21,11 @@
CFLAGS=-std=c99 -Wall -Wextra -I../../src/include -s -O3
TARGET=hello.so
UNAME:=$(shell uname -s)
ifeq ($(UNAME), Darwin)
CFLAGS:=$(CFLAGS) -undefined dynamic_lookup
endif
SOURCES=main.c
$(TARGET): $(SOURCES)

View File

@ -21,6 +21,12 @@
CFLAGS=-std=c99 -Wall -Wextra -I../../src/include -O2 -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -shared -fpic
TARGET=sqlite3.so
# MacOS specifics
UNAME:=$(shell uname -s)
ifeq ($(UNAME), Darwin)
CFLAGS:=$(CFLAGS) -undefined dynamic_lookup
endif
sqlite-autoconf-3230100/sqlite3.%:
curl https://www.sqlite.org/2018/sqlite-autoconf-3230100.tar.gz | tar -xvz