diff --git a/branches/follower/wiz810mj/src/lib/Makefile b/branches/follower/wiz810mj/src/lib/Makefile deleted file mode 100644 index 5a9fb79..0000000 --- a/branches/follower/wiz810mj/src/lib/Makefile +++ /dev/null @@ -1,90 +0,0 @@ -############################################################################### -# Makefile for the project EVBs_061114 -############################################################################### - -## General Flags -PROJECT = EVB_W5100_DNS -MCU = atmega168 -TARGET = $(PROJECT)_direct_mode.elf -#TARGET = $(PROJECT)_indirect_mode.elf -#TARGET = $(PROJECT)_spi_mode.elf -CC = avr-gcc - -## Options common to compile, link and assembly rules -COMMON = -mmcu=$(MCU) - -## Compile options common for all C compilation units. -CFLAGS = $(COMMON) -CFLAGS += -Wall -O0 -fsigned-char -CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d -D__COMPILER_VERSION__=2 -INCLUDES = - -## Assembly specific flags -ASMFLAGS = $(COMMON) -ASMFLAGS += -x assembler-with-cpp -Wa,-gdwarf2 - -## Linker flags -LDFLAGS = $(COMMON) -LDFLAGS += - - -## Intel Hex file production flags -HEX_FLASH_FLAGS = -R .eeprom - -HEX_EEPROM_FLAGS = -j .eeprom -HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load" -HEX_EEPROM_FLAGS += --change-section-lma .eeprom=0 - - -## Objects that must be built in order to link -OBJECTS = socket.o w5100.o delay.o - -## Objects explicitly added by the user -LINKONLYOBJECTS = - -## Build -all: $(TARGET) $(PROJECT)_direct_mode.hex $(PROJECT)_direct_mode.eep size -#all: $(TARGET) $(PROJECT)_indirect_mode.hex $(PROJECT)_indirect_mode.eep size -#all: $(TARGET) $(PROJECT)_spi_mode.hex $(PROJECT)_spi_mode.eep size - -## Compile -delay.o: delay.c - $(CC) $(INCLUDES) $(CFLAGS) -c $< - -#timer.o: ../mcu/timer.c -# $(CC) $(INCLUDES) $(CFLAGS) -c $< - -socket.o: socket.c - $(CC) $(INCLUDES) $(CFLAGS) -c $< - -w5100.o: w5100.c - $(CC) $(INCLUDES) $(CFLAGS) -c $< - -##Link -$(TARGET): $(OBJECTS) - $(CC) $(LDFLAGS) $(OBJECTS) $(LINKONLYOBJECTS) $(LIBDIRS) $(LIBS) -o $(TARGET) - -%.hex: $(TARGET) - avr-objcopy -O ihex $(HEX_FLASH_FLAGS) $< $@ - -%.eep: $(TARGET) - avr-objcopy $(HEX_EEPROM_FLAGS) -O ihex $< $@ - -%.lss: $(TARGET) - avr-objdump -h -S $< > $@ - -size: ${TARGET} - @echo - @avr-size -C --mcu=${MCU} ${TARGET} - -## Clean target -.PHONY: clean -clean: - -rm -rf $(OBJECTS) dep/* - -rm -f $(PROJECT)_direct_mode.elf $(PROJECT)_direct_mode.hex $(PROJECT)_direct_mode.eep - -rm -f $(PROJECT)_indirect_mode.elf $(PROJECT)_indirect_mode.hex $(PROJECT)_indirect_mode.eep - -rm -f $(PROJECT)_spi_mode.elf $(PROJECT)_spi_mode.hex $(PROJECT)_spi_mode.eep - -## Other dependencies --include $(shell mkdir dep 2>/dev/null) $(wildcard dep/*) -