sqlite3-xconv/Makefile

25 lines
437 B
Makefile
Raw Normal View History

2017-03-12 16:49:47 +00:00
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 libqxconv.so -lxconv
clean:
rm -f core *.o *.so
install: all
#strip libxconv.so
mkdir -p /mod/lib/sql
cp libqxconv.so /mod/lib/sql/libqxconv.so
.c.o:
@echo " $<"
@$(CC) $(CFLAGS) ${WARN} ${DEFS} ${INCS} -c $< -o $@