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

Subversion Repositories spacewire_light

[/] [spacewire_light/] [trunk/] [sw/] [spwamba_test/] [Makefile] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 jorisvr
#
2
# Build test software for SpaceWire Light with AMBA interface on LEON3.
3
#
4
# This Makefile builds a test program for use with spwamba_gr-xc3s1500
5
# on real hardware.
6
#
7
# A different configuration of this test program is used in a simulation.
8
# In that case the program is built by sim/spwamba_leon3/Makefile.
9
#
10
 
11 6 jorisvr
SWDEFS = -DTXCLKFREQ=200 -DDESCTABLESIZE=10 -DQUEUEFILL=1980 -DLOOPBACKSWITCH=0
12 5 jorisvr
 
13
CC = sparc-elf-gcc
14
CFLAGS = -msoft-float -Wall -Os
15
LDFLAGS = -msoft-float
16
 
17
MKPROM = sparc-elf-mkprom
18
PROMFLAGS = -freq 40 -nosram -sdram 64 -v -msoft-float
19
 
20
.PHONY: all
21
all: spwamba_test.dsu spwamba_test.prom
22
 
23
spwamba_test.dsu: spwamba_test.o
24
        $(CC) $(LDFLAGS) $^ -o $@
25
 
26
spwamba_test.prom: spwamba_test.dsu
27
        $(MKPROM) $(PROMFLAGS) $< -o $@
28
 
29
spwamba_test.o: spwamba_test.c
30
        $(CC) $(SWDEFS) $(CFLAGS) -c $<
31
 
32
.PHONY: clean
33
clean:
34
        $(RM) spwamba_test.o spwamba_test.dsu spwamba_test.prom xdump.s
35
 

powered by: WebSVN 2.1.0

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