##// END OF EJS Templates
Étiquette (LFR-EQM) 2-1-70 ajoutée à la révision bcb5a865d2bb
Étiquette (LFR-EQM) 2-1-70 ajoutée à la révision bcb5a865d2bb

File last commit:

r110:ff6ca9d2a8d8 JC
r579:da926ab85276 JC
Show More
Makefile
21 lines | 639 B | text/x-makefile | MakefileLexer
GRLIB=../../..
CC=gcc
XCC=sparc-elf-gcc -I$(GRLIB)/software/leon3 $(BOPT)
XAS=sparc-elf-gcc -c -I. -I$(GRLIB)/software/leon3 $(BOPT)
bootrom.o: bootrom.S bootrom.h
$(XAS) $<
bootrom.exe: bootrom.o
$(XCC) -nostdlib -Tlinkprom -N -L./ -Ttext=0 -nostartfiles -o bootrom.exe $<
make_bootrom : $(GRLIB)/bin/ahbrom.c
@if test -r "/mingw/bin/gcc.exe"; then \
$(CC) $(GRLIB)/bin/ahbrom.c -o make_bootrom -lwsock32; \
else \
$(CC) $(GRLIB)/bin/ahbrom.c -o make_bootrom; \
fi;
bootrom.vhd: bootrom.exe
make make_bootrom
sparc-elf-objcopy -O binary bootrom.exe bootrom.bin
./make_bootrom bootrom.bin bootrom.vhd