sqlite3-xconv/Makefile
2022-09-24 01:13:49 +01:00

21 lines
398 B
Makefile

CFLAGS=-g -fPIC
DEFS=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE
WARN=-Wall -Wunused
LIBFILE=xconv.so
.PHONY: all clean install
all: $(LIBFILE)
$(LIBFILE): xconv.c
@echo " $<"
@$(CC) $(CFLAGS) $(WARN) $(DEFS) -shared -ldl -lpthread -lxconv -o $@ $<
clean:
rm -f *.so
install: all
mkdir -p /mod/lib/sql
strip $(LIBFILE) -o /mod/lib/sql/$(LIBFILE)