URL
https://opencores.org/ocsvn/openmsp430/openmsp430/trunk
Subversion Repositories openmsp430
[/] [openmsp430/] [trunk/] [fpga/] [xilinx_diligent_s3board/] [software/] [hw_uart/] [makefile] - Rev 210
Go to most recent revision | Compare with Previous | Blame | View Log
# makfile configurationNAME = hw_uartOBJECTS = main.oCFLAGS = -O2 -Wall -g -mcpu=430 -mivcnt=16 -mmpy=16 # Uniarch flags#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#confgigure the next line if you want to use the serial downloaddownload: download-uart#download: download-jtag#download: download-bsl#additional rules for files${NAME}.elf: ${OBJECTS}${CC} -Tlinker.x -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 *.o#backup archivedist:tar czf dist.tgz *.c *.h *.txt makefile#dummy target as dependecy if something has to be build everytimeFORCE:#project dependenciesmain.o: main.c hardware.h
Go to most recent revision | Compare with Previous | Blame | View Log
