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)