CC ?= gcc CFLAGS ?= -Wall -x c -s LIBS = lib/stdbuf.so all: ${LIBS} %.so: %.c #TODO: multiarch (-m32/-m64) ${CC} ${CFLAGS} $< -fPIC -shared -o $@ clean: rm -f ${LIBS}