sqlite3-xconv/Makefile

25 lines
430 B
Makefile

MAKE=make
CFLAGS=-g
DEFS=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE
#WARN=-Wall -Wunused
all: lib
lib:
gcc ${CFLAGS} ${DEFS} -shared -ldl -lpthread -fPIC xconv.c -o libxconv.so -lxconv
clean:
rm -f core *.o *.so
install: all
strip libxconv.so
mkdir -p /mod/lib/sql
cp libxconv.so /mod/lib/sql/xconv.so
.c.o:
@echo " $<"
@$(CC) $(CFLAGS) ${WARN} ${DEFS} ${INCS} -c $< -o $@