Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Oct 25, 2024
2 parents 9abce78 + 4922286 commit 13ff77b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ ifeq ($(shell uname -s),Darwin)
LIBFILE := $(LIBNAME).dylib
DYNAMIC_LIB := -dynamiclib
SQLITE_LIB = libsqlite3.dylib
CXXFLAGS := $(CXXFLAGS) $(shell pkg-config --cflags --libs libcurl openssl)
else
LIBFILE := $(LIBNAME).so
DYNAMIC_LIB := -shared -fPIC
SQLITE_LIB = libsqlite3.so
CXXFLAGS := $(CXXFLAGS) -lcurl -lssl -lcrypto
endif

all: *.c *.cpp *.hpp
clang++ $(CXXFLAGS) $(DYNAMIC_LIB) -o $(LIBFILE) sqlwrite.cpp fmt/src/format.cc -lcurl -lssl -lcrypto
clang++ $(CXXFLAGS) $(DYNAMIC_LIB) -o $(LIBFILE) sqlwrite.cpp fmt/src/format.cc
clang $(CFLAGS) $(DYNAMIC_LIB) -o $(SQLITE_LIB) sqlite3.c
clang $(CFLAGS) shell.c -L. -lsqlite3 -o sqlite3
clang $(CFLAGS) shell.c -L. -lsqlite3 -o sqlwrite

0 comments on commit 13ff77b

Please sign in to comment.