Use $(AR) instead of ar