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

Subversion Repositories test_project

[/] [test_project/] [trunk/] [sw/] [mul/] [Makefile] - Blame information for rev 45

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

Line No. Rev Author Line
1 25 julius
include ../support/Makefile.inc
2
 
3
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
4
 
5
common = ../support/libsupport.a /opt/$(OR32_TOOL_PREFIX)/lib/gcc/$(OR32_TOOL_PREFIX)/4.2.2/libgcc.a
6
 
7
all: $(cases)
8
 
9
mul-nocache-O0: mul-O0.o ../support/reset-nocache.o $(common)
10
 
11
        $(OR32_TOOL_PREFIX)-gcc -nostdlib -T ../support/orp.ld $? -o $@.or32
12
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
13 45 julius
        ../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
14
        ../utils/bin2vmem $@.bin > $@.vmem
15 25 julius
 
16 45 julius
 
17 25 julius
mul-nocache-O2: mul-O2.o ../support/reset-nocache.o $(common)
18
 
19
        $(OR32_TOOL_PREFIX)-gcc  -nostdlib -T ../support/orp.ld $? -o $@.or32
20
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
21 45 julius
        ../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
22
        ../utils/bin2vmem $@.bin > $@.vmem
23 25 julius
 
24 45 julius
 
25 25 julius
mul-ic-O0: mul-O0.o ../support/reset-ic.o $(common)
26
 
27
        $(OR32_TOOL_PREFIX)-gcc -nostdlib -T ../support/orp.ld $? -o $@.or32
28
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
29 45 julius
        ../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
30
        ../utils/bin2vmem $@.bin > $@.vmem
31 25 julius
 
32 45 julius
 
33 25 julius
mul-ic-O2: mul-O2.o ../support/reset-ic.o $(common)
34
 
35
        $(OR32_TOOL_PREFIX)-gcc -nostdlib -T ../support/orp.ld $? -o $@.or32
36
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
37 45 julius
        ../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
38
        ../utils/bin2vmem $@.bin > $@.vmem
39 25 julius
 
40 45 julius
 
41 25 julius
mul-dc-O0: mul-O0.o ../support/reset-dc.o $(common)
42
 
43
        $(OR32_TOOL_PREFIX)-gcc -nostdlib -T ../support/orp.ld $? -o $@.or32
44
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
45 45 julius
        ../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
46
        ../utils/bin2vmem $@.bin > $@.vmem
47 25 julius
 
48 45 julius
 
49 25 julius
mul-dc-O2: mul-O2.o ../support/reset-dc.o $(common)
50
 
51
        $(OR32_TOOL_PREFIX)-gcc -nostdlib -T ../support/orp.ld $? -o $@.or32
52
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
53 45 julius
        ../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
54
        ../utils/bin2vmem $@.bin > $@.vmem
55 25 julius
 
56 45 julius
 
57 25 julius
mul-icdc-O0: mul-O0.o ../support/reset-icdc.o $(common)
58
 
59
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
60
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
61 45 julius
        ../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
62
        ../utils/bin2vmem $@.bin > $@.vmem
63 25 julius
 
64 45 julius
 
65 25 julius
mul-icdc-O2: mul-O2.o ../support/reset-icdc.o  $(common)
66
 
67
        $(OR32_TOOL_PREFIX)-gcc -nostdlib -T ../support/orp.ld $? -o $@.or32
68
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
69 45 julius
        ../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
70
        ../utils/bin2vmem $@.bin > $@.vmem
71 25 julius
 
72 45 julius
 
73 25 julius
mul-O0.o: mul.c
74 33 julius
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -I../support -O0 $? -c -o $@
75 25 julius
 
76
mul-O2.o: mul.c
77 33 julius
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -I../support -O2 $? -c -o $@
78 25 julius
 
79
clean:
80
        rm -f *.o *.or32 *.log *.bin *.hex *.log stdout.txt

powered by: WebSVN 2.1.0

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