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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [fpga/] [xilinx_diligent_s3board/] [software/] [leds/] [makefile] - Blame information for rev 199

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

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

powered by: WebSVN 2.1.0

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