adapter; simplify; pass cc/cflags