URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 39 |
Rev 157 |
#
|
#
|
# Makefile for divtest ROM
|
# Makefile for divtest ROM
|
#
|
#
|
|
|
BUILD = ../../build
|
BUILD = ../../build
|
|
|
.PHONY: all install run clean
|
.PHONY: all install run clean
|
|
|
all: divtest.exo
|
all: divtest.exo
|
|
|
install: divtest.exo
|
install: divtest.exo
|
|
|
divtest.exo: divtest.bin
|
divtest.exo: divtest.bin
|
$(BUILD)/bin/bin2exo -S2 0 divtest.bin divtest.exo
|
$(BUILD)/bin/bin2exo -S2 0 divtest.bin divtest.exo
|
|
|
divtest.bin: divtest.o
|
divtest.bin: divtest.o
|
$(BUILD)/bin/ld -h -rc 0xE0000000 -o divtest.bin divtest.o
|
$(BUILD)/bin/ld -h -rc 0xE0000000 -o divtest.bin divtest.o
|
|
|
divtest.o: divtest.s
|
divtest.o: divtest.s
|
$(BUILD)/bin/as -o divtest.o divtest.s
|
$(BUILD)/bin/as -o divtest.o divtest.s
|
|
|
divtest.s: mkdivtest
|
divtest.s: mkdivtest
|
./mkdivtest > divtest.s
|
./mkdivtest > divtest.s
|
|
|
mkdivtest: mkdivtest.c
|
mkdivtest: mkdivtest.c
|
gcc -m32 -g -Wall -o mkdivtest mkdivtest.c
|
gcc -m32 -g -Wall -o mkdivtest mkdivtest.c
|
|
|
run: divtest.bin
|
run: divtest.bin
|
$(BUILD)/bin/sim -i -t 1 -r divtest.bin
|
$(BUILD)/bin/sim -i -t 1 -r divtest.bin
|
|
|
clean:
|
clean:
|
rm -f *~ mkdivtest divtest.s divtest.o
|
rm -f *~ mkdivtest divtest.s divtest.o
|
rm -f divtest.bin divtest.exo
|
rm -f divtest.bin divtest.exo
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.