mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-30 23:23:07 +00:00 
			
		
		
		
	Update natives makefile.
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
| @@ -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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose