I don't understand the ifeq ($(TARGET), ap). It's suppose to work in sim ?