We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9abce78 + 4922286 commit 13ff77bCopy full SHA for 13ff77b
GNUmakefile
@@ -7,13 +7,15 @@ ifeq ($(shell uname -s),Darwin)
7
LIBFILE := $(LIBNAME).dylib
8
DYNAMIC_LIB := -dynamiclib
9
SQLITE_LIB = libsqlite3.dylib
10
+CXXFLAGS := $(CXXFLAGS) $(shell pkg-config --cflags --libs libcurl openssl)
11
else
12
LIBFILE := $(LIBNAME).so
13
DYNAMIC_LIB := -shared -fPIC
14
SQLITE_LIB = libsqlite3.so
15
+CXXFLAGS := $(CXXFLAGS) -lcurl -lssl -lcrypto
16
endif
17
18
all: *.c *.cpp *.hpp
- clang++ $(CXXFLAGS) $(DYNAMIC_LIB) -o $(LIBFILE) sqlwrite.cpp fmt/src/format.cc -lcurl -lssl -lcrypto
19
+ clang++ $(CXXFLAGS) $(DYNAMIC_LIB) -o $(LIBFILE) sqlwrite.cpp fmt/src/format.cc
20
clang $(CFLAGS) $(DYNAMIC_LIB) -o $(SQLITE_LIB) sqlite3.c
- clang $(CFLAGS) shell.c -L. -lsqlite3 -o sqlite3
21
+ clang $(CFLAGS) shell.c -L. -lsqlite3 -o sqlwrite
0 commit comments