0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-05-13 05:53:15 +00:00
Files
libsql/bindings/c/Makefile
Lucio Franco 6a6b5dfc70 chore: remove filesystem clean c bindings (#1062)
* chore: remove filesystem clean c bindings

* add env var in actions file
2024-02-20 20:10:39 +00:00

17 lines
375 B
Makefile

OS := $(shell uname)
CFLAGS := -Iinclude
LDFLAGS := -lm
# Set LIBSQL_PATH to the default path if not provided
LIBSQL_EXPERIMENTAL_PATH ?= ../../target/release/libsql_experimental.a
ifeq ($(OS),Darwin)
CFLAGS += -framework Security -framework CoreServices
endif
.PHONY: all
all: example
example: example.c
$(CC) -o $@ $(CFLAGS) $< $(LIBSQL_EXPERIMENTAL_PATH) $(LDFLAGS)