######################################################################### # # # Makefile for timer-irq.elf # # # ######################################################################### # Author: John Zaitseff # Date: 8th May, 2003 # Version: 1.1 # This file contains the necessary information to compile timer-irq.elf. # You can use this file by typing: # make -f timer-irq.make # Generated files can be removed by typing: # make -f timer-irq.make clean all: timer-irq.elf timer-irq.elf: misc.ls boot-timer.o timer-irq.o null-main.o boot-timer.o: boot-timer.s header-v3.s timer-irq.o: timer-irq.s header-v3.s null-main.o: null-main.s clean: -rm -f timer-irq.elf boot-timer.o timer-irq.o null-main.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: