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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [dhrystone/] [Makefile] - Blame information for rev 280

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 280 hellwig
#
2
# Makefile for "dhrystone", the well-known integer benchmark
3
#
4
 
5
BUILD = ../../build
6
 
7
SRC = port/start.s dhry_1.c dhry_2.c port/dhry_utils.c \
8
      port/iolib.c port/biolib.c port/end.s
9
BIN = dhrystone.bin
10
MAP = dhrystone.map
11
EXO = dhrystone.exo
12
 
13
.PHONY:         all install run clean
14
 
15
all:            $(BIN) $(EXO)
16
 
17
install:        $(BIN) $(EXO)
18
                mkdir -p $(BUILD)/stdalone
19
                cp $(BIN) $(BUILD)/stdalone
20
                cp $(MAP) $(BUILD)/stdalone
21
                cp $(EXO) $(BUILD)/stdalone
22
 
23
run:            $(BIN)
24
                $(BUILD)/bin/sim -i -m 32 -s 1 -t 0 -l $(BIN) -a 0x10000
25
 
26
$(EXO):         $(BIN)
27
                $(BUILD)/bin/bin2exo -S2 0x10000 $(BIN) $(EXO)
28
 
29
$(BIN):         $(SRC)
30
                $(BUILD)/bin/lcc -A -Wo-kernel -Wl-m -Wl$(MAP) \
31
                  -o $(BIN) -DNOFLOAT -DSTANDALONE -DRUNS=100000 \
32
                  -I. -Iport $(SRC)
33
 
34
clean:
35
                rm -f port/*~ *~ $(BIN) $(MAP) $(EXO)

powered by: WebSVN 2.1.0

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