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

Subversion Repositories test_project

[/] [test_project/] [trunk/] [sw/] [uart/] [Makefile] - Rev 27

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

include ../support/Makefile.inc
cases = uart-nocache uart-icdc
common = ../support/libsupport.a

all: $(cases)

uart-nocache: uart.o ../support/reset-nocache.o $(common)
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex

uart-icdc: uart.o ../support/reset-icdc.o
        $(OR32_TOOL_PREFIX)-ld -T ../support/orp.ld $? -o $@.or32 $(common)
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
        ../utils/bin2hex $@.bin > $@.hex

uart.o: uart.c
        $(OR32_TOOL_PREFIX)-gcc -O2 $? -c -o $@

clean:
        rm -f *.o *.or32 *.log *.bin *.srec *.hex *.log stdout.txt

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

powered by: WebSVN 2.1.0

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