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

Subversion Repositories spacewire_light

[/] [spacewire_light/] [trunk/] [sw/] [rtems_driver/] [Makefile] - Blame information for rev 10

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

Line No. Rev Author Line
1 6 jorisvr
#
2
# Build SpaceWire Light driver and test program for RTEMS on LEON3.
3
#
4
# A different configuration of this test program is used in a simulation.
5
# In that case the program is built by sim/spwamba_leon3/Makefile.
6
#
7
 
8
TARGETDIR = /opt/rtems-4.10/sparc-rtems4.10/leon3
9
GCCSPECS  = -B$(TARGETDIR)/lib/ -specs bsp_specs -qrtems
10
CC        = sparc-rtems4.10-gcc
11
CFLAGS    = $(GCCSPECS) -msoft-float -Wall -Os
12
LDFLAGS   = $(GCCSPECS) -msoft-float
13
 
14
.PHONY: all
15
all: spwltest.dsu
16
 
17
spwltest.dsu: spwltest.o spacewirelight.o
18
        $(CC) $(LDFLAGS) $^ -o $@
19
 
20
spwltest.o: spwltest.c spacewirelight.h
21
        $(CC) $(CFLAGS) -c $<
22
 
23
spacewirelight.o: spacewirelight.c spacewirelight.h
24
        $(CC) $(CFLAGS) -c $<
25
 
26
.PHONY: clean
27
clean:
28
        $(RM) spwltest.dsu spwltest.o spacewirelight.o
29
 

powered by: WebSVN 2.1.0

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