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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src-c/] [dhrystone_v2.1/] [makefile] - Blame information for rev 145

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

Line No. Rev Author Line
1 145 olivier.gi
# makfile configuration
2
NAME            = dhrystone_v2.1
3
OBJECTS         = dhry_1.o dhry_2.o omsp_func.o
4
 
5
# disable some warnings specific to the Dhrystone code
6
WARNINGS        =  -Wall -Wno-implicit-int -Wno-implicit-function-declaration -Wno-return-type
7
 
8
#CFLAGS         = -O2  ${WARNINGS} -g                                          # Old flags
9
#CFLAGS          = -O1 ${WARNINGS} -g -mcpu=430 -mivcnt=16 -mmpy=16            # Uniarch flags     #   DMIPS=0.377632
10
#CFLAGS          = -Os ${WARNINGS} -g -mcpu=430 -mivcnt=16 -mmpy=16            # Uniarch flags     #   DMIPS=0.373193
11
#CFLAGS          = -O2 ${WARNINGS} -g -mcpu=430 -mivcnt=16 -mmpy=16            # Uniarch flags     #   DMIPS=0.396044
12
CFLAGS          = -O3 ${WARNINGS} -g -mcpu=430 -mivcnt=16 -mmpy=16            # Uniarch flags     #   DMIPS=0.400228
13
 
14
#switch the compiler (for the internal make rules)
15
CC              = msp430-gcc
16
 
17
 
18
.PHONY: all FORCE clean download download-jtag download-bsl dist
19
 
20
#all should be the first target. it's built when make is runwithout args
21
all: ${NAME}.elf ${NAME}.a43 ${NAME}.lst
22
 
23
#confgigure the next line if you want to use the serial download
24
download: download-uart
25
#download: download-jtag
26
#download: download-bsl
27
 
28
#additional rules for files
29
${NAME}.elf: ${OBJECTS}
30
        ${CC} -T linker.x -o $@ ${OBJECTS}
31
 
32
${NAME}.a43: ${NAME}.elf
33
        msp430-objcopy -O ihex $^ $@
34
 
35
${NAME}.lst: ${NAME}.elf
36
        msp430-objdump -dSt $^ >$@
37
 
38
download-jtag: all
39
        msp430-jtag -e ${NAME}.elf
40
 
41
download-bsl: all
42
        msp430-bsl -e ${NAME}.elf
43
 
44
download-uart: all
45
        openmsp430-loader.tcl -device /dev/ttyUSB0 -baudrate 115200 ${NAME}.elf
46
 
47
clean:
48
        rm -f ${NAME} ${NAME}.a43 ${NAME}.lst ${NAME}.elf *.o
49
 
50
#backup archive
51
dist:
52
        tar czf dist.tgz *.c *.h *.txt makefile
53
 
54
#dummy target as dependecy if something has to be build everytime
55
FORCE:
56
 
57
#project dependencies
58
dhry_1.o: dhry_1.c
59
dhry_2.o: dhry_2.c
60
omsp_func.o: omsp_func.c
61
 

powered by: WebSVN 2.1.0

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