diff --git a/cube/Makefile b/cube/Makefile index 837978f..184c212 100644 --- a/cube/Makefile +++ b/cube/Makefile @@ -18,7 +18,7 @@ # LAN = 1 # WiFi = 2 # GSM = 3 -NETWORK = 1 +# NETWORK = 1 ###################################### @@ -200,13 +200,19 @@ all: $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET # list of objects OBJECTS = $(addprefix $(BUILD_DIR)/,$(notdir $(C_SOURCES:.c=.o))) vpath %.c $(sort $(dir $(C_SOURCES))) + +ifeq ($(NETWORK), 1) OBJECTS += $(addprefix $(BUILD_DIR)/,w5500.a) +endif + # list of ASM program objects OBJECTS += $(addprefix $(BUILD_DIR)/,$(notdir $(ASM_SOURCES:.s=.o))) vpath %.s $(sort $(dir $(ASM_SOURCES))) +ifeq ($(NETWORK), 1) $(BUILD_DIR)/w5500.a: (cd ioLibrary_Driver && $(MAKE) && cp w5500.a ../$(BUILD_DIR) && cd ..) +endif $(BUILD_DIR)/%.o: %.c Makefile | $(BUILD_DIR) $(CC) -c $(CFLAGS) -Wa,-a,-ad,-alms=$(BUILD_DIR)/$(notdir $(<:.c=.lst)) $< -o $@