25 lines
437 B
Makefile
25 lines
437 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 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 $@
|
||
|
|