ports/databases/trilogy/files/patch-Makefile
Po-Chuan Hsieh 833ccb4129
databases/trilogy: Add trilogy 2.6.0
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
2023-10-16 23:59:38 +08:00

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 $<