2022-09-24 00:13:49 +00:00
|
|
|
CFLAGS=-g -fPIC
|
|
|
|
DEFS=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE
|
|
|
|
WARN=-Wall -Wunused
|
2017-03-12 16:49:47 +00:00
|
|
|
|
2022-09-24 00:13:49 +00:00
|
|
|
LIBFILE=xconv.so
|
2017-03-12 16:49:47 +00:00
|
|
|
|
2022-09-24 00:13:49 +00:00
|
|
|
.PHONY: all clean install
|
2017-03-12 16:49:47 +00:00
|
|
|
|
2022-09-24 00:13:49 +00:00
|
|
|
all: $(LIBFILE)
|
2017-03-12 16:49:47 +00:00
|
|
|
|
2022-09-24 00:13:49 +00:00
|
|
|
$(LIBFILE): xconv.c
|
|
|
|
@echo " $<"
|
|
|
|
@$(CC) $(CFLAGS) $(WARN) $(DEFS) -shared -ldl -lpthread -lxconv -o $@ $<
|
2017-03-12 16:49:47 +00:00
|
|
|
|
|
|
|
clean:
|
2022-09-24 00:13:49 +00:00
|
|
|
rm -f *.so
|
2017-03-12 16:49:47 +00:00
|
|
|
|
|
|
|
install: all
|
|
|
|
mkdir -p /mod/lib/sql
|
2022-09-24 00:13:49 +00:00
|
|
|
strip $(LIBFILE) -o /mod/lib/sql/$(LIBFILE)
|