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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [fpga/] [actel_m1a3pl_dev_kit/] [software/] [spacewar/] [makefile] - Blame information for rev 80

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

Line No. Rev Author Line
1 80 olivier.gi
# makfile configuration
2
NAME            = spacewar
3
OBJECTS         = bzsin.o  cline.o  compar.o  explode.o  hardware.o  main.o  point.o  reset.o  rocket1.o  rocket2.o  score.o  update.o
4
CPU             = msp430x2122
5
 
6
CFLAGS          = -mmcu=${CPU} -O2 -Wall -g
7
 
8
#switch the compiler (for the internal make rules)
9
CC              = msp430-gcc
10
 
11
 
12
.PHONY: all FORCE clean download download-jtag download-bsl dist
13
 
14
#all should be the first target. it's built when make is runwithout args
15
all: ${NAME}.elf ${NAME}.a43 ${NAME}.lst
16
 
17
#serial download
18
download: download-uart
19
 
20
#additional rules for files
21
${NAME}.elf: ${OBJECTS}
22
        ${CC} -mmcu=${CPU} -o $@ ${OBJECTS}
23
 
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 ${NAME}.elf *.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
bzsin.o:    bzsin.c
51
cline.o:    cline.c    spacewar.h
52
compar.o:   compar.c   spacewar.h
53
explode.o:  explode.c
54
hardware.o: hardware.c spacewar.h
55
main.o:     main.c     spacewar.h
56
point.o:    point.c    spacewar.h
57
reset.o:    reset.c    spacewar.h
58
rocket1.o:  rocket1.c  spacewar.h
59
rocket2.o:  rocket2.c  spacewar.h
60
score.o:    score.c    spacewar.h
61
update.o:   update.c   spacewar.h

powered by: WebSVN 2.1.0

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