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

Subversion Repositories openfire2

[/] [openfire2/] [trunk/] [sw/] [freertos-sample1/] [Makefile] - Rev 6

Compare with Previous | Blame | View Log

PRJ  = sample
CRT  = ../crt/crt-sram
SRCS = $(PRJ).c
OBJS = $(SRCS:.c=.o)
LINK = ../link/sp3sk-sram.ld
PATH_FREERTOS = ../freertos

$(PRJ).srec: $(PRJ).out
        mb-objcopy -O srec $(PRJ).out $(PRJ).srec
        mb-objcopy -O binary $(PRJ).out $(PRJ).bin
        ..\..\utils\bin2rom $(PRJ).bin $(PRJ).rom

$(OBJS): $(SRCS)
        mb-gcc -O2 -I. -I$(PATH_FREERTOS) -mno-xl-soft-mul -c -Wa,-ahlms=$(@:.o=.lst) -o $@ $(@:.o=.c)

$(PRJ).out: $(CRT).o  $(OBJS)
        mb-ld -L $(PATH_FREERTOS) -L ../lib -T $(LINK) -Map=$(PRJ).map -o $(PRJ).out $(CRT).o $(OBJS) -lfreertos -lgcc -lc -lm -lgcc -lio
        
clean:
        -rm *.o
        -rm *.out
        -rm *.bin
        -rm *.v
        -rm *.map
        -rm *.lst
        -rm *.bak
        -rm *.srec
        -rm *.prom
        -rm *.rom

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.