use $(AR) instead of ar