The following shows the makefile that has been modified to work with handwritten code.
all : my_main
CFLAGS = -g -I$$STM_ROOT/etc/prt/c -I$$STM_ROOT/etc/sched -DPRT -Dsparc
out_lib.a : $(OBJECTS)
my_main : out_lib.a Makefile
-L$$STM_ROOT/lib -lintrinsics -lscheduler -lm
example.o : example.h