include $(ROOT)/usr/include/make/NGdefs

TARGETS = ppcboot.elf 

CFILES = boot1_ppcboot.c

default: $(TARGETS)

LLDLIBS = -lsys -liossyscall -lioslibc
LLDOPTS = -T$(ROOT)/usr/lib/rvl/ddr.link -Ttext=$(MK_PPCBOOT_START)

ppcboot.elf: $(CRT0) boot1_ppcboot.o init_lomem.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)

clean:
	rm -f *.list *.hex *.o *.mem *.sha 

clobber: clean
	rm -f *.elf *.flash *.log

headers exports:
	
install: $(TARGETS)
	$(INSTALL) $(TARGETS) $(ROOT)/usr/bin/rvl
