Move conditional CFLAGS and OBJS setting to common place.