We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c45d0a commit 7070b46Copy full SHA for 7070b46
1 file changed
bindings/c/Makefile
@@ -1,3 +1,6 @@
1
+OS := $(shell uname)
2
+CFLAGS := -Iinclude
3
+LDFLAGS := -lm
4
ARCHS_IOS = aarch64-apple-ios aarch64-apple-ios-sim
5
ARCHS_ANDROID = aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android
6
IOS_LIB_FILE = libsql_experimental.dylib
@@ -6,6 +9,17 @@ LIB_FILE = libsql_experimental.so
9
XCFRAMEWORK = libsql_experimental.xcframework
7
10
HEADER = libsql.h
8
11
12
+ifeq ($(OS),Darwin)
13
+ CFLAGS += -framework Security -framework CoreServices
14
+endif
15
+
16
+.PHONY: all $(ARCHS_IOS) ios $(ARCHS_ANDROID) android
17
18
+all: example
19
20
+example: example.c
21
+ $(CC) -o $@ $(CFLAGS) $< $(LIBSQL_EXPERIMENTAL_PATH) $(LDFLAGS)
22
23
notify:
24
osascript -e 'display notification "Build completed" with title "libsql"'
25
echo "🟢 Build Completed!"
0 commit comments