BINDIR=/home/slim/bootloader/arm-2008q1/bin/ BIN_PREFIX=arm-none-eabi- CC=$(BINDIR)$(BIN_PREFIX)gcc LD=$(BINDIR)$(BIN_PREFIX)ld OBJDUMP=$(BINDIR)$(BIN_PREFIX)objdump CFLAGS+=-static -fomit-frame-pointer -nostdlib START_ADDRESS=0x78000000 # allow 256 bytes for variables. VARIABLE_ADDRESS=0x78000F00 LDFLAGS=-e main -nostdlib --section-start .text=$(START_ADDRESS) --section-start .text=$(START_ADDRESS) --section-start .data=$(VARIABLE_ADDRESS) test: test.c Makefile init.h init-baby-serialport.h init-baby-ddr2.h init.h $(CC) $(CFLAGS) -c -Wa,-ahl=test.s test.c $(LD) $(LDFLAGS) -Map test.map test.o -o test $(OBJDUMP) -d test > test.disas