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