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

Subversion Repositories openfire2

[/] [openfire2/] [trunk/] [sw/] [test-int/] [Makefile] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 toni32
PRJ  = sample
2
CRT  = ../crt/crt-sram
3
SRCS = $(PRJ).c
4
OBJS = $(SRCS:.c=.o)
5
LINK = ../link/sp3sk-sram.ld
6
 
7
$(PRJ).srec: $(PRJ).out
8
        mb-objcopy -O srec $(PRJ).out $(PRJ).srec
9
        mb-objcopy -O binary $(PRJ).out $(PRJ).bin
10
        ..\..\utils\bin2rom $(PRJ).bin $(PRJ).rom
11
 
12
$(OBJS): $(SRCS)
13
        mb-gcc -O2 -I../lib -I. -mno-xl-soft-mul -c -Wa,-ahlms=$(@:.o=.lst) -o $@ $(@:.o=.c)
14
 
15
$(PRJ).out: $(CRT).o  $(OBJS)
16
        mb-ld -L ../lib -T $(LINK) -Map=$(PRJ).map -o $(PRJ).out $(CRT).o $(OBJS) -lgcc -lc -lm -lgcc -lio
17
 
18
clean:
19
        -rm *.o
20
        -rm *.out
21
        -rm *.bin
22
        -rm *.v
23
        -rm *.map
24
        -rm *.lst
25
        -rm *.bak
26
        -rm *.srec
27
        -rm *.prom
28
        -rm *.rom

powered by: WebSVN 2.1.0

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