URL
https://opencores.org/ocsvn/openmsp430/openmsp430/trunk
Subversion Repositories openmsp430
[/] [openmsp430/] [trunk/] [fpga/] [actel_m1a3pl_dev_kit/] [software/] [spacewar/] [makefile] - Rev 112
Go to most recent revision | Compare with Previous | Blame | View Log
# makfile configurationNAME = spacewarOBJECTS = bzsin.o cline.o compar.o explode.o hardware.o main.o point.o reset.o rocket1.o rocket2.o score.o update.oCPU = msp430x2122CFLAGS = -mmcu=${CPU} -O2 -Wall -g#CFLAGS = -mmcu=${CPU} -mforce-hwmul -O2 -Wall -g#switch the compiler (for the internal make rules)CC = msp430-gcc.PHONY: all FORCE clean download download-jtag download-bsl dist#all should be the first target. it's built when make is runwithout argsall: ${NAME}.elf ${NAME}.a43 ${NAME}.lst#serial downloaddownload: download-uart#additional rules for files${NAME}.elf: ${OBJECTS}${CC} -mmcu=${CPU} -o $@ ${OBJECTS}${NAME}.a43: ${NAME}.elfmsp430-objcopy -O ihex $^ $@${NAME}.lst: ${NAME}.elfmsp430-objdump -dSt $^ >$@download-jtag: allmsp430-jtag -e ${NAME}.elfdownload-bsl: allmsp430-bsl -e ${NAME}.elfdownload-uart: allopenmsp430-loader.tcl -device /dev/ttyUSB0 -baudrate 115200 ${NAME}.elfclean:rm -f ${NAME} ${NAME}.a43 ${NAME}.lst ${NAME}.elf *.o#backup archivedist:tar czf dist.tgz *.c *.h *.txt makefile#dummy target as dependecy if something has to be build everytimeFORCE:#project dependenciesbzsin.o: bzsin.ccline.o: cline.c spacewar.hcompar.o: compar.c spacewar.hexplode.o: explode.chardware.o: hardware.c spacewar.hmain.o: main.c spacewar.hpoint.o: point.c spacewar.hreset.o: reset.c spacewar.hrocket1.o: rocket1.c spacewar.hrocket2.o: rocket2.c spacewar.hscore.o: score.c spacewar.hupdate.o: update.c spacewar.h
Go to most recent revision | Compare with Previous | Blame | View Log
