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

Subversion Repositories test_project

[/] [test_project/] [trunk/] [sw/] [mul/] [Makefile] - Rev 37

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

include ../support/Makefile.inc

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 /opt/$(OR32_TOOL_PREFIX)/lib/gcc/$(OR32_TOOL_PREFIX)/4.2.2/libgcc.a

all: $(cases)

mul-nocache-O0: mul-O0.o ../support/reset-nocache.o $(common)

        $(OR32_TOOL_PREFIX)-gcc -nostdlib -T ../support/orp.ld $? -o $@.or32
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex

mul-nocache-O2: mul-O2.o ../support/reset-nocache.o $(common)

        $(OR32_TOOL_PREFIX)-gcc  -nostdlib -T ../support/orp.ld $? -o $@.or32
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex

mul-ic-O0: mul-O0.o ../support/reset-ic.o $(common)

        $(OR32_TOOL_PREFIX)-gcc -nostdlib -T ../support/orp.ld $? -o $@.or32
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex

mul-ic-O2: mul-O2.o ../support/reset-ic.o $(common)

        $(OR32_TOOL_PREFIX)-gcc -nostdlib -T ../support/orp.ld $? -o $@.or32
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex

mul-dc-O0: mul-O0.o ../support/reset-dc.o $(common)

        $(OR32_TOOL_PREFIX)-gcc -nostdlib -T ../support/orp.ld $? -o $@.or32
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex

mul-dc-O2: mul-O2.o ../support/reset-dc.o $(common)

        $(OR32_TOOL_PREFIX)-gcc -nostdlib -T ../support/orp.ld $? -o $@.or32
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex

mul-icdc-O0: mul-O0.o ../support/reset-icdc.o $(common)

        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex

mul-icdc-O2: mul-O2.o ../support/reset-icdc.o  $(common)

        $(OR32_TOOL_PREFIX)-gcc -nostdlib -T ../support/orp.ld $? -o $@.or32
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex

mul-O0.o: mul.c
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -I../support -O0 $? -c -o $@

mul-O2.o: mul.c
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -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.