perf(rlp compile):
when ETHEREUM/PLATON/PLATONE/FISCOBCOS are closed , do not compile rlp
@@ -5,24 +5,16 @@ OBJECTS_DIR = $(BOAT_BUILD_DIR)/sdk/rlp
OBJECTS = $(patsubst %.c,$(OBJECTS_DIR)/%.o,$(SOURCES))
+
+ifeq ($(BOAT_PROTOCOL_USE_ETHEREUM)_$(BOAT_PROTOCOL_USE_PLATON)_$(BOAT_PROTOCOL_USE_PLATONE)_$(BOAT_PROTOCOL_USE_FISCOBCOS), 0_0_0_0)
+all:
+else
all: $(OBJECTS_DIR) $(OBJECTS)
$(OBJECTS_DIR):
$(BOAT_MKDIR) -p $(OBJECTS_DIR)
$(OBJECTS_DIR)/%.o:%.c
-# If BOAT_PROTOCOL_USE_ETHEREUM, BOAT_PROTOCOL_USE_PLATON, BOAT_PROTOCOL_USE_PLATONE, BOAT_PROTOCOL_USE_FISCOBCOS has one setted to 1,
-# then build RLP
-# ifeq ($(findstring $(BOAT_PROTOCOL_USE_ETHEREUM)$(BOAT_PROTOCOL_USE_PLATON)$(BOAT_PROTOCOL_USE_PLATONE)$(BOAT_PROTOCOL_USE_FISCOBCOS), 0000),)
-
-# else
-# # Placeholder if nothing to excute
-# $(CC) -c $(BOAT_CFLAGS) $< -o $@
-# $(BOAT_COPY) $(SOURCES) $(OBJECTS_DIR)
-# endif
-ifeq ($(BOAT_PROTOCOL_USE_ETHEREUM)_$(BOAT_PROTOCOL_USE_PLATON)_$(BOAT_PROTOCOL_USE_PLATONE)_$(BOAT_PROTOCOL_USE_FISCOBCOS), 0_0_0_0)
-
-else
$(CC) -c $(BOAT_CFLAGS) $< -o $@
$(BOAT_COPY) $(SOURCES) $(OBJECTS_DIR)
endif
