1include config.mak 2VPATH=$(SRC_DIR) 3all: vof.bin 4 5CC ?= $(CROSS)gcc 6LD ?= $(CROSS)ld 7OBJCOPY ?= $(CROSS)objcopy 8 9%.o: %.S 10 $(CC) -m32 -mbig-endian -mcpu=power4 -c -o $@ $< 11 12%.o: %.c 13 $(CC) -m32 -mbig-endian -mcpu=power4 -c -fno-stack-protector -o $@ $< 14 15vof.elf: entry.o main.o ci.o bootmem.o libc.o 16 $(LD) -nostdlib -e_start -T$(SRC_DIR)/vof.lds -EB -o $@ $^ 17 18%.bin: %.elf 19 $(OBJCOPY) -O binary -j .text -j .data -j .toc -j .got2 $^ $@ 20 21clean: 22 rm -f *.o vof.bin vof.elf *~ 23 24.PHONY: all clean 25