######################################################################### # # # Makefile for flash-v2.elf # # # ######################################################################### # Author: John Zaitseff # Date: 7th May, 2003 # Version: 1.3 # This file contains the necessary information to compile flash-v2.elf. # You can use this file by typing: # make -f flash-v2.make # Generated files can be removed by typing: # make -f flash-v2.make clean all: flash-v2.elf flash-v2.elf: misc.ls boot-swi-v2.o swi-v2.o flash-v2.o boot-swi-v2.o: boot-swi-v2.s header-v2-int.s swi-v2.o: swi-v2.s header-v2-int.s flash-v2.o: flash-v2.s header-v2-pub.s clean: -rm -f flash-v2.elf boot-swi-v2.o swi-v2.o flash-v2.o # The following variables and implicit rules are required for the GNU # Assembler for ARM. You probably do not need to modify anything here. AS = arm-elf-as LD = arm-elf-ld ASFLAGS = --gdwarf2 LDFLAGS = LOADLIBES = LDLIBS = # Assemble ARM assembly language source (.s) to an object file (.o) %.o: %.s $(AS) -marm7tdmi $(ASFLAGS) $< -o $@ # Link files into an ARM executable (.elf), using the GNU Linker. %.elf: $(LD) $(LDFLAGS) $+ $(LOADLIBES) $(LDLIBS) -o $@ # Miscellaneous rules .PHONY: all clean .DEFAULT: .SUFFIXES: