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

Subversion Repositories test_project

[/] [test_project/] [trunk/] [sw/] [dhry/] [Makefile] - Blame information for rev 25

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

Line No. Rev Author Line
1 25 julius
include ../support/Makefile.inc
2
#ADDED BY ME
3
cases = dhry-nocache-O0 dhry-nocache-O2 dhry-icdc-O2
4
#common = ../support/libsupport.a
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
dhry-nocache-O0: dhry-O0.o ../support/reset-nocache.o $(common)
10
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
11
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
12
        ../utils/bin2hex $@.bin > $@.hex
13
 
14
dhry-nocache-O2: dhry-O2.o ../support/reset-nocache.o $(common)
15
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
16
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
17
        ../utils/bin2hex $@.bin > $@.hex
18
 
19
dhry-icdc-O2: dhry-O2.o ../support/reset-icdc.o $(common)
20
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
21
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
22
        ../utils/bin2hex $@.bin > $@.hex
23
 
24
dhry-O0.o: dhry.c
25
        $(OR32_TOOL_PREFIX)-gcc -I../support -O0 $? -mhard-div -c -o $@
26
 
27
dhry-O2.o: dhry.c
28
        $(OR32_TOOL_PREFIX)-gcc -I../support -O2 $? -mhard-div -c -o $@
29
 
30
clean:
31
        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.