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 .c.o: $(COMPILE) $< #################################################### TARGET = locked_print.c init1.c init2.c all: $(TARGET:.c=.o) $(CC) $(CFLAGS) locked_print.o init1.o $(LIBS) -o init1.exe -Wl,-Ttext,0x60000000 $(CC) $(CFLAGS) locked_print.o init2.o $(LIBS) -o init2.exe -Wl,-Ttext,0x60100000 clean: $(RM) *.a *.o *.bak core *.exe