build `gen_ct` with AM_CPPFLAGS and AM_CFLAGS