-OPT_DEFS += -DHOST_IWRAP
+IWRAP_DIR = protocol/iwrap
-SRC += iwrap.c \
- suart.S \
- sendchar_uart.c \
- uart.c
+OPT_DEFS += -DPROTOCOL_IWRAP
+
+SRC += $(IWRAP_DIR)/iwrap.c \
+ $(IWRAP_DIR)/suart.S \
+ $(IWRAP_DIR)/sendchar_uart.c \
+ $(IWRAP_DIR)/uart.c
# Search Path
-VPATH += $(COMMON_DIR)/iwrap
+VPATH += $(TOP_DIR)/protocol/iwrap