From ccfa563b985cbf71704a29a3968cb3514eae2196 Mon Sep 17 00:00:00 2001 From: follower Date: Mon, 5 Nov 2007 09:46:31 +0000 Subject: [PATCH] It turns out Arduino compiles the files quite happily without the Makefile (with maybe 20 bytes difference). We're ditching the Makefile as I never got the Makefile to a state where it was fully working anyway as I ended up using: avr-gcc -mmcu=atmega168 -Wall -Os -fsigned-char -combine -c socket.c w5100.c -o wiz810mj.o && avr-strip --strip-debug --strip-unneeded -X -x *.o git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@53 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b --- branches/follower/wiz810mj/src/lib/Makefile | 90 --------------------- 1 file changed, 90 deletions(-) delete mode 100644 branches/follower/wiz810mj/src/lib/Makefile 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/*) -