mirror of
https://git.freebsd.org/ports.git
synced 2025-06-10 23:30:29 -04:00
Trilogy is a client library for MySQL-compatible database servers, designed for performance, flexibility, and ease of embedding. It's currently in production use on github.com. Features: - Supports the most frequently used parts of the text protocol - Handshake - Password authentication - Query, ping, and quit commands - Support prepared statements (binary protocol) - Low-level protocol API completely decoupled from IO - Non-blocking client API wrapping the protocol API - Blocking client API wrapping the non-blocking API - No dependencies outside of POSIX, the C standard library & OpenSSL - Minimal dynamic allocation - MIT licensed
24 lines
511 B
Text
24 lines
511 B
Text
--- Makefile.orig 2023-09-18 20:57:42 UTC
|
|
+++ Makefile
|
|
@@ -21,16 +21,19 @@ else
|
|
endif
|
|
|
|
.PHONY: all
|
|
-all: libtrilogy.a examples
|
|
+all: libtrilogy.a libtrilogy.so examples
|
|
|
|
.PHONY: examples
|
|
examples: $(EXAMPLES)
|
|
|
|
-example/%: example/%.c libtrilogy.a
|
|
+example/%: example/%.c libtrilogy.so
|
|
$(CC) -o $@ $(CFLAGS) -pedantic $(LDFLAGS) $^ $(OPENSSL)
|
|
|
|
libtrilogy.a: $(OBJS)
|
|
$(AR) r $@ $^
|
|
+
|
|
+libtrilogy.so: $(OBJS)
|
|
+ $(CC) -shared $^ -o $@
|
|
|
|
%.o: %.c inc/trilogy/*.h
|
|
$(CC) -o $@ $(CFLAGS) -pedantic -c $<
|