[Cita][#1193]update Maekfile
-# Source and Objects
-
SOURCES = $(wildcard *.c)
OBJECTS_DIR = $(BOAT_BUILD_DIR)/sdk/protocol/boatcita
OBJECTS = $(patsubst %.c,$(OBJECTS_DIR)/%.o,$(SOURCES))
-
-all: $(OBJECTS_DIR) $(OBJECTS)
-
+all: $(OBJECTS_DIR) $(OBJECTS) protos-objects
$(OBJECTS_DIR):
$(BOAT_MKDIR) -p $(OBJECTS_DIR)
@@ -15,6 +11,9 @@ $(OBJECTS_DIR)/%.o:%.c
$(CC) -c $(BOAT_CFLAGS) $< -o $@
$(BOAT_COPY) $(SOURCES) $(OBJECTS_DIR)
+protos-objects:
+ make -C protos all
clean:
-$(BOAT_RM) $(OBJECTS)
+ make -C protos clean
