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

Subversion Repositories ion

[/] [ion/] [trunk/] [src/] [common/] [libsoc/] [makefile] - Blame information for rev 172

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

Line No. Rev Author Line
1 172 ja_rd
 
2
#-- Set up toolchain -- modify as needed ---------------------------------------
3
 
4
BIN_MIPS = C:/dev/embedded/SourceryGpp/mips-elf-11-03.52/bin
5
CC = $(BIN_MIPS)/mips-sde-elf-gcc.exe $(CFLAGS)
6
AS = $(BIN_MIPS)/mips-sde-elf-as
7
AR = $(BIN_MIPS)/mips-sde-elf-ar
8
LD = $(BIN_MIPS)/mips-sde-elf-ld
9
DUMP = $(BIN_MIPS)/mips-sde-elf-objdump
10
COPY = $(BIN_MIPS)/mips-sde-elf-objcopy
11
 
12
 
13
#-- Common variables -----------------------------------------------------------
14
 
15
CFLAGS  = -O2 -Wall -c -s -fno-builtin -nostdlib -nodefaultlibs \
16
          -msoft-float -mips1 -G0
17
 
18
#-- IMPORTANT: List of object files to be included in the library
19
OBJS    = hw_ion_mpu.o soc.o syscalls.o printf-stdarg.o
20
 
21
SRC = ./src
22
 
23
#-- Targets & rules ------------------------------------------------------------
24
 
25
libsoc.a: $(OBJS)
26
        $(AR) rvs libsoc.a $(OBJS)
27
#       -@$(DUMP) -m mips --disassemble soc.o > soc.lst
28
 
29
soc.o:              $(SRC)/soc.h
30
printf-stdarg.o:
31
syscalls.o:         $(SRC)/soc.h
32
hw_ion_mpu.o:       $(SRC)/soc.h $(SRC)/hw.h
33
 
34
 
35
#-- Let's make some implicit rules explicit for clarity (well, 'clarity')
36
 
37
%.o: $(SRC)/%.c
38
        $(CC) $(CFLAGS) $< -o $@
39
 
40
#-- And now the usual housekeeping stuff ---------------------------------------
41
 
42
.PHONY: clean
43
 
44
clean:
45
        -$(RM) *.o *.obj *.map *.lst *.hex *.exe *.axf *.code *.data *.bin
46
 

powered by: WebSVN 2.1.0

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