~linaro-toolchain-dev/cortex-strings/trunk

« back to all changes in this revision

Viewing changes to benchmarks/dhry/Makefile

  • Committer: Michael Hope
  • Date: 2010-08-26 22:37:26 UTC
  • Revision ID: michael.hope@linaro.org-20100826223726-lo6udrvh314vf639
Added the dhrystone 2.1 benchmark from benchnt

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Simple Makefile to build dhry
 
2
#
 
3
 
 
4
CC = gcc
 
5
OPT = -O3
 
6
CFLAGS += $(OPT)
 
7
 
 
8
COMPILER = $(shell $(CC) --version 2>&1 | head -n1)
 
9
 
 
10
CFLAGS += -Dcompiler="\"$(COMPILER)\"" -Doptions="\"$(OPT)\""
 
11
 
 
12
TESTS = dhry
 
13
 
 
14
all: $(TESTS)
 
15
 
 
16
dhry: dhry_1.c dhry_2.c
 
17
        $(CC) $(CFLAGS) -o $@ $^
 
18
 
 
19
run: dhry
 
20
        ./$< N
 
21
 
 
22
clean:
 
23
        rm -f $(TESTS) *~ *.o