OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [apps/] [dhry/] [Makefile] - Blame information for rev 393

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

Line No. Rev Author Line
1 363 julius
.PHONY: dhry.vmem
2
.PHONY: dhry.bin
3 6 julius
 
4 354 julius
include ../Makefile.inc
5 6 julius
 
6 354 julius
NUM_RUNS ?= 10
7 6 julius
 
8 354 julius
OR32_CFLAGS += -DNUM_RUNS=$(NUM_RUNS)
9 6 julius
 
10 363 julius
 
11
# Have our specific make rules here, so each time we run it gets compiled.
12
# This is useful as the NUM_RUNS variable can change from build to build.
13
 
14
.PHONY: dhry.vmem
15
dhry.vmem: dhry.bin $(UTILS_BIN2VMEM)
16
        $(Q)$(UTILS_BIN2VMEM) $< > $@
17
 
18
.PHONY: dhry.bin
19
dhry.bin: dhry.elf
20
        $(Q)$(OR32_OBJCOPY) -O binary $< $@
21
 
22
.PHONY: dhry.elf
23
dhry.elf: dhry.c $(ELF_DEPENDS)
24
        $(Q)$(OR32_CC) $^ $(OR32_CFLAGS) $(OR32_LDFLAGS) -o $@
25
 
26 354 julius
%.dis: %.elf
27
        $(Q)$(OR32_OBJDUMP) -d $< > $@
28 6 julius
 
29 354 julius
%.bin: %.elf
30
        $(Q)$(OR32_OBJCOPY) -O binary $< $@
31 6 julius
 
32 354 julius
clean:
33
        $(Q)rm -f *.elf *.bin *.vmem *.flashin *.dis
34 6 julius
 

powered by: WebSVN 2.1.0

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