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

Subversion Repositories spacewire_light

[/] [spacewire_light/] [trunk/] [sw/] [spwamba_test/] [Makefile] - Diff between revs 5 and 6

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 5 Rev 6
#
#
# Build test software for SpaceWire Light with AMBA interface on LEON3.
# Build test software for SpaceWire Light with AMBA interface on LEON3.
#
#
# This Makefile builds a test program for use with spwamba_gr-xc3s1500
# This Makefile builds a test program for use with spwamba_gr-xc3s1500
# on real hardware.
# on real hardware.
#
#
# A different configuration of this test program is used in a simulation.
# A different configuration of this test program is used in a simulation.
# In that case the program is built by sim/spwamba_leon3/Makefile.
# In that case the program is built by sim/spwamba_leon3/Makefile.
#
#
 
 
SWDEFS = -DTXCLKFREQ=200 -DDESCTABLESIZE=10 -DQUEUEFILL=1760 -DLOOPBACKSWITCH=0
SWDEFS = -DTXCLKFREQ=200 -DDESCTABLESIZE=10 -DQUEUEFILL=1980 -DLOOPBACKSWITCH=0
 
 
CC = sparc-elf-gcc
CC = sparc-elf-gcc
CFLAGS = -msoft-float -Wall -Os
CFLAGS = -msoft-float -Wall -Os
LDFLAGS = -msoft-float
LDFLAGS = -msoft-float
MKPROM = sparc-elf-mkprom
MKPROM = sparc-elf-mkprom
PROMFLAGS = -freq 40 -nosram -sdram 64 -v -msoft-float
PROMFLAGS = -freq 40 -nosram -sdram 64 -v -msoft-float
.PHONY: all
.PHONY: all
all: spwamba_test.dsu spwamba_test.prom
all: spwamba_test.dsu spwamba_test.prom
spwamba_test.dsu: spwamba_test.o
spwamba_test.dsu: spwamba_test.o
        $(CC) $(LDFLAGS) $^ -o $@
        $(CC) $(LDFLAGS) $^ -o $@
spwamba_test.prom: spwamba_test.dsu
spwamba_test.prom: spwamba_test.dsu
        $(MKPROM) $(PROMFLAGS) $< -o $@
        $(MKPROM) $(PROMFLAGS) $< -o $@
spwamba_test.o: spwamba_test.c
spwamba_test.o: spwamba_test.c
        $(CC) $(SWDEFS) $(CFLAGS) -c $<
        $(CC) $(SWDEFS) $(CFLAGS) -c $<
.PHONY: clean
.PHONY: clean
clean:
clean:
        $(RM) spwamba_test.o spwamba_test.dsu spwamba_test.prom xdump.s
        $(RM) spwamba_test.o spwamba_test.dsu spwamba_test.prom xdump.s
 
 

powered by: WebSVN 2.1.0

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