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