# # Makefile for hello world example # MAIN=hello # Tool paths tooldir=/avenger/afcc_ada/tools/powerpc-rtems-gnat-3.10p/ rtemsdir=${tooldir}/rtems/score603e # Tool names GCC=${tooldir}/bin/powerpc-rtems-gcc GNATMAKE=${tooldir}/bin/powerpc-rtems-gnatmake SIZE=${tooldir}/bin/powerpc-rtems-size CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems -mcpu=603 all: init.o $(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \ -bargs -r \ -cargs $(CARGS) \ -largs $(CARGS) init.o $(SIZE) $(MAIN) init.o: init.c $(GCC) -O4 -g -Wall -ansi -fasm $(CARGS) -c init.c run: @ echo Must run on the real target gdb: @ echo No real target clean: rm -f b_$(MAIN).c b_$(MAIN).o *.o *.ali $(MAIN)