OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [orp/] [orp_soc/] [sw/] [mul/] [Makefile] - Rev 967

Go to most recent revision | Compare with Previous | Blame | View Log


cases = mul-nocache-O0 mul-nocache-O2 mul-ic-O0 mul-ic-O2 mul-dc-O0 mul-dc-O2 mul-icdc-O2 mul-icdc-O0
common = ../support/libsupport.a

all: $(cases)

mul-nocache-O0: mul-O0.o ../support/reset-nocache.o $(common)
        or32-rtems-ld -T ../support/orp.ld $? -o $@.or32
        or32-rtems-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex
        cp $@.hex ../../sim/src/

mul-nocache-O2: mul-O2.o ../support/reset-nocache.o $(common)
        or32-rtems-ld -T ../support/orp.ld $? -o $@.or32
        or32-rtems-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex
        cp $@.hex ../../sim/src/

mul-ic-O0: mul-O0.o ../support/reset-ic.o $(common)
        or32-rtems-ld -T ../support/orp.ld $? -o $@.or32
        or32-rtems-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex
        cp $@.hex ../../sim/src/

mul-ic-O2: mul-O2.o ../support/reset-ic.o $(common)
        or32-rtems-ld -T ../support/orp.ld $? -o $@.or32
        or32-rtems-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex
        cp $@.hex ../../sim/src/

mul-dc-O0: mul-O0.o ../support/reset-dc.o $(common)
        or32-rtems-ld -T ../support/orp.ld $? -o $@.or32
        or32-rtems-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex
        cp $@.hex ../../sim/src/

mul-dc-O2: mul-O2.o ../support/reset-dc.o $(common)
        or32-rtems-ld -T ../support/orp.ld $? -o $@.or32
        or32-rtems-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex
        cp $@.hex ../../sim/src/

mul-icdc-O0: mul-O0.o ../support/reset-icdc.o $(common)
        or32-rtems-ld -T ../support/orp.ld $? -o $@.or32
        or32-rtems-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex
        cp $@.hex ../../sim/src/

mul-icdc-O2: mul-O2.o ../support/reset-icdc.o  $(common)
        or32-rtems-ld -T ../support/orp.ld $? -o $@.or32
        or32-rtems-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex
        cp $@.hex ../../sim/src/

mul-O0.o: mul.c
        or32-rtems-gcc -I../support -O0 $? -c -o $@

mul-O2.o: mul.c
        or32-rtems-gcc -I../support -O2 $? -c -o $@

clean:
        rm -f *.o *.or32 *.log *.bin *.hex *.log stdout.txt 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.