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

Subversion Repositories test_project

[/] [test_project/] [trunk/] [sw/] [cust/] [Makefile] - Blame information for rev 27

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

Line No. Rev Author Line
1 25 julius
include ../support/Makefile.inc
2
cases = cust-nocache-O0 cust-nocache-O2 cust-ic-O0 cust-ic-O2 cust-dc-O0 cust-dc-O2 cust-icdc-O0 cust-icdc-O2
3
common = ../support/libsupport.a
4
 
5
all: $(cases)
6
 
7
cust-nocache-O0: cust-O0.o ../support/reset-nocache.o $(common)
8
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
9
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
10
        ../utils/bin2hex $@.bin > $@.hex
11
 
12
cust-nocache-O2: cust-O2.o ../support/reset-nocache.o $(common)
13
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
14
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
15
        ../utils/bin2hex $@.bin > $@.hex
16
 
17
cust-ic-O0: cust-O0.o ../support/reset-ic.o
18
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 $(common)
19
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
20
        ../utils/bin2hex $@.bin > $@.hex
21
 
22
cust-ic-O2: cust-O2.o ../support/reset-ic.o
23
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 $(common)
24
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
25
        ../utils/bin2hex $@.bin > $@.hex
26
 
27
cust-dc-O0: cust-O0.o ../support/reset-dc.o
28
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 $(common)
29
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
30
        ../utils/bin2hex $@.bin > $@.hex
31
 
32
cust-dc-O2: cust-O2.o ../support/reset-dc.o
33
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 $(common)
34
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
35
        ../utils/bin2hex $@.bin > $@.hex
36
 
37
cust-icdc-O0: cust-O0.o ../support/reset-icdc.o
38
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 $(common)
39
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
40
        ../utils/bin2hex $@.bin > $@.hex
41
 
42
cust-icdc-O2: cust-O2.o ../support/reset-icdc.o
43
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 $(common)
44
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
45
        ../utils/bin2hex $@.bin > $@.hex
46
 
47
cust-O0.o: cust.c
48
        $(OR32_TOOL_PREFIX)-gcc -O0 $? -c -o $@
49
 
50
cust-O2.o: cust.c
51
        $(OR32_TOOL_PREFIX)-gcc -O2 $? -c -o $@
52
 
53
clean:
54
        rm -f *.o *.or32 *.log *.bin *.srec *.hex *.log stdout.txt

powered by: WebSVN 2.1.0

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