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 test lib: gcc ${CFLAGS} ${DEFS} -shared -ldl -lpthread -fPIC xconv.c -o libxconv.so clean: rm -f core *.o *.so test install: all strip libxconv.so cp libxconv.so /mod/lib/libxconv.so cp xconv.h /mod/include .c.o: @echo " $<" @$(CC) $(CFLAGS) ${WARN} ${DEFS} ${INCS} -c $< -o $@ test: test.c $(CC) $(CFLAGS) ${WARN} ${DEFS} ${INCS} $< -o $@ -L. -Wl,-rpath,. -lxconv