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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [fpga/] [xilinx_diligent_s3board/] [software/] [hw_uart/] [makefile] - Diff between revs 136 and 143

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 136 Rev 143
Line 1... Line 1...
# makfile configuration
# makfile configuration
NAME            = hw_uart
NAME            = hw_uart
OBJECTS         = main.o
OBJECTS         = main.o
CPU             = msp430x1121
 
 
 
ASFLAGS         = -mmcu=${CPU} -mforce-hwmul -x assembler-with-cpp -D_GNU_ASSEMBLER_ -c
CFLAGS          = -O2 -Wall -g -mcpu=430 -mivcnt=16 -mmpy=16     # Uniarch flags
CFLAGS          = -mmcu=${CPU} -mforce-hwmul -O2 -Wall -g
 
 
 
#switch the compiler (for the internal make rules)
#switch the compiler (for the internal make rules)
CC              = msp430-gcc
CC              = msp430-gcc
AS              = msp430-gcc
 
 
 
.PHONY: all FORCE clean download download-jtag download-bsl dist
.PHONY: all FORCE clean download download-jtag download-bsl dist
 
 
#all should be the first target. it's built when make is runwithout args
#all should be the first target. it's built when make is runwithout args
all: ${NAME}.elf ${NAME}.a43 ${NAME}.lst
all: ${NAME}.elf ${NAME}.a43 ${NAME}.lst
Line 20... Line 17...
#download: download-jtag
#download: download-jtag
#download: download-bsl
#download: download-bsl
 
 
#additional rules for files
#additional rules for files
${NAME}.elf: ${OBJECTS}
${NAME}.elf: ${OBJECTS}
        ${CC} -mmcu=${CPU} -o $@ ${OBJECTS}
        ${CC} -Tlinker.x -o $@ ${OBJECTS}
 
 
${NAME}.a43: ${NAME}.elf
${NAME}.a43: ${NAME}.elf
        msp430-objcopy -O ihex $^ $@
        msp430-objcopy -O ihex $^ $@
 
 
${NAME}.lst: ${NAME}.elf
${NAME}.lst: ${NAME}.elf

powered by: WebSVN 2.1.0

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