CC = sparc-gaisler-rtems5-gcc CFLAGS = -qbsp=gr740_mp -O2 -g -I/opt/rcc-1.3-rc9-gcc/src/rcc-1.3-rc9/testsuites/support/include LD = $(CC) CINCLUDE = LIBS = COMPILE = $(CC) $(CFLAGS) $(CINCLUDE) -c #################################################### all: init1.o init2.o locked_print.o $(CC) $(CFLAGS) init1.o locked_print.o $(LIBS) -o init1.exe -Wl,-Ttext,0x00400000 $(CC) $(CFLAGS) init2.o locked_print.o $(LIBS) -o init2.exe -Wl,-Ttext,0x00200000 init1.o : init1.c $(COMPILE) init1.c init2.o : init2.c $(COMPILE) init2.c locked_print.o : locked_print.c $(COMPILE) locked_print.c clean: $(RM) *.a *.o *.bak core *.exe