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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [fpga/] [xilinx_diligent_s3board/] [software/] [hw_uart/] [makefile] - Blame information for rev 191

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

Line No. Rev Author Line
1 136 olivier.gi
# makfile configuration
2
NAME            = hw_uart
3
OBJECTS         = main.o
4
 
5 143 olivier.gi
CFLAGS          = -O2 -Wall -g -mcpu=430 -mivcnt=16 -mmpy=16     # Uniarch flags
6 136 olivier.gi
 
7
#switch the compiler (for the internal make rules)
8
CC              = msp430-gcc
9
 
10
.PHONY: all FORCE clean download download-jtag download-bsl dist
11
 
12
#all should be the first target. it's built when make is runwithout args
13
all: ${NAME}.elf ${NAME}.a43 ${NAME}.lst
14
 
15
#confgigure the next line if you want to use the serial download
16
download: download-uart
17
#download: download-jtag
18
#download: download-bsl
19
 
20
#additional rules for files
21
${NAME}.elf: ${OBJECTS}
22 143 olivier.gi
        ${CC} -Tlinker.x -o $@ ${OBJECTS}
23 136 olivier.gi
 
24
${NAME}.a43: ${NAME}.elf
25
        msp430-objcopy -O ihex $^ $@
26
 
27
${NAME}.lst: ${NAME}.elf
28
        msp430-objdump -dSt $^ > $@
29
 
30
download-jtag: all
31
        msp430-jtag -e ${NAME}.elf
32
 
33
download-bsl: all
34
        msp430-bsl -e ${NAME}.elf
35
 
36
download-uart: all
37
        openmsp430-loader.tcl -device /dev/ttyUSB0 -baudrate 115200 ${NAME}.elf
38
 
39
clean:
40
        rm -f ${NAME} ${NAME}.a43 ${NAME}.lst *.o
41
 
42
#backup archive
43
dist:
44
        tar czf dist.tgz *.c *.h *.txt makefile
45
 
46
#dummy target as dependecy if something has to be build everytime
47
FORCE:
48
 
49
#project dependencies
50
main.o: main.c hardware.h

powered by: WebSVN 2.1.0

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