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 166

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
 
5 143 olivier.gi
CFLAGS          = -O2 -Wall -g -mcpu=430 -mivcnt=16 -mmpy=none     # Uniarch flags
6 80 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
#serial download
17
download: download-uart
18
 
19
#additional rules for files
20
${NAME}.elf: ${OBJECTS}
21 143 olivier.gi
        ${CC} -T linker.x -o $@ ${OBJECTS}
22 80 olivier.gi
 
23
${NAME}.a43: ${NAME}.elf
24
        msp430-objcopy -O ihex $^ $@
25
 
26
${NAME}.lst: ${NAME}.elf
27
        msp430-objdump -dSt $^ >$@
28
 
29
download-jtag: all
30
        msp430-jtag -e ${NAME}.elf
31
 
32
download-bsl: all
33
        msp430-bsl -e ${NAME}.elf
34
 
35
download-uart: all
36
        openmsp430-loader.tcl -device /dev/ttyUSB0 -baudrate 115200 ${NAME}.elf
37
 
38
clean:
39
        rm -f ${NAME} ${NAME}.a43 ${NAME}.lst ${NAME}.elf *.o
40
 
41
#backup archive
42
dist:
43
        tar czf dist.tgz *.c *.h *.txt makefile
44
 
45
#dummy target as dependecy if something has to be build everytime
46
FORCE:
47
 
48
#project dependencies
49
bzsin.o:    bzsin.c
50
cline.o:    cline.c    spacewar.h
51
compar.o:   compar.c   spacewar.h
52
explode.o:  explode.c
53
hardware.o: hardware.c spacewar.h
54
main.o:     main.c     spacewar.h
55
point.o:    point.c    spacewar.h
56
reset.o:    reset.c    spacewar.h
57
rocket1.o:  rocket1.c  spacewar.h
58
rocket2.o:  rocket2.c  spacewar.h
59
score.o:    score.c    spacewar.h
60
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.