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

Subversion Repositories mips_enhanced

[/] [mips_enhanced/] [trunk/] [grlib-gpl-1.0.19-b3188/] [software/] [leon3/] [Makefile] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 dimamali
VPATH=$(GRLIB)/software/leon3
2
XCC=sparc-elf-gcc -I$(GRLIB)/software/leon3 $(BOPT)
3
XAS=sparc-elf-gcc -c -I. -I$(GRLIB)/software/leon3 $(BOPT)
4
XAR=sparc-elf-ar
5
XCFLAGS=-O2 -g -msoft-float
6
XLDFLAGS=-L./ lib3tests.a
7
 
8
PROGS = report_device apbuart divtest multest regtest \
9
        cache gpio ramfill ramtest irqmp leon3_test gptimer \
10
        mulasm cacheasm spwtest mptest fpu spwtest mptest grfpu_ops \
11
        base_test can_oc mmu mmu_asm pcitest greth grfpu_test atactrl \
12
        grcan i2cmst spictrl greth_api misc spimctrl
13
 
14
 
15
OFILES = $(PROGS:%=%.o)
16
 
17
%.o: %.c
18
        $(XCC) $(XCFLAGS) -c  $<
19
 
20
%.o: %.S
21
        $(XCC) $(XCFLAGS) -c  $<
22
 
23
fpu.o: fpu.c
24
        $(XCC) -ffast-math -O3 -c  $<
25
 
26
multest.o: multest.c
27
        $(XCC) -O2 -c -mv8  $<
28
 
29
divtest.o: divtest.c
30
        $(XCC) -O2 -c -mv8  $<
31
 
32
greth_api.o : $(GRLIB)/software/greth/greth_api.c
33
        $(XCC) -g -msoft-float -c $(GRLIB)/software/greth/greth_api.c
34
 
35
lib3tests.a: $(OFILES)
36
        $(XAR) -cr lib3tests.a $(OFILES)
37
 
38
 
39
soft: prom.srec sram.srec sdram.srec $(EXTRA_SOFT)
40
 
41
prom.o: prom.S prom.h
42
        $(XAS) $<
43
prom.exe: prom.o
44
        $(XCC) -nostdlib -Tlinkprom -N -L./ -Ttext=0 -nostartfiles -o prom.exe $<
45
 
46
prom.srec: prom.exe
47
        sparc-elf-objcopy -O srec prom.exe prom.srec
48
 
49
systest.exe: systest.c lib3tests.a
50
        $(XCC) $(XCFLAGS) systest.c $(XLDFLAGS) -o systest.exe
51
 
52
sdram.srec: systest.exe
53
        sparc-elf-objcopy -O srec systest.exe sdram.srec
54
 
55
sram.srec: systest.exe
56
        sparc-elf-objcopy -O srec systest.exe sram.srec
57
 
58
soft-clean:
59
        -rm -rf *.o *.exe *.a
60
 
61
mmusoft:
62
        make -f Makefile.img mmusoft
63
 
64
standalone.exe: systest.c standalone.c lib3tests.a
65
        $(XCC) $(XCFLAGS) systest.c $(VPATH)/standalone.c $(XLDFLAGS) -o standalone.exe

powered by: WebSVN 2.1.0

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