FILE = Termin4Aufgabe21 Opti = 0 all: # uebersetzen der Quelldatei arm-eb63-elf-gcc -c -g -O$(Opti) $(FILE).c -I ../h # Erzeugen der Assemblerdatei aus der Quelldatei arm-eb63-elf-gcc -S -O$(Opti) $(FILE).c -I ../h -o$(FILE).S # Erzeugen der benoetitgen Objektdateien arm-eb63-elf-gcc -c -g -O$(Opti) ../boot/swi.S -o swi.o -I ../h arm-eb63-elf-gcc -c -g -O$(Opti) ../boot/boot_ice.S -o boot_ice.o -I ../h # Binden fuer die RAM-Version arm-eb63-elf-ld -Ttext 0x02000000 -O$(Opti) boot_ice.o swi.o $(FILE).o -o $(FILE).elf # arm-eb63-elf-ld -Ttext 0x02000000 -O$(Opti) boot_ice.o swi.o $(FILE).o -o $(FILE).elf /opt/arm-eb63-elf/lib/gcc/arm-eb63-elf/4.4.6/libgcc.a # -I --input-target Assume input file is in format # -O --output-target Create an output file in format # -S --strip-all Remove all symbol and relocation information # -x --discard-all Remove all non-global symbols # -N --strip-symbol Do not copy symbol # -O --output-target Create an output file in format # -g --strip-debug Remove all debugging symbols clean: rm *.o rm *.s rm *.elf rm *.rom