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

Subversion Repositories amber

[/] [amber/] [trunk/] [sw/] [mini-libc/] [Makefile] - Blame information for rev 31

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 csantifort
# ----------------------------------------------------------------
2
#                                                               //
3
#   Makefile for the mini-libc                                  //
4
#                                                               //
5
#   This file is part of the Amber project                      //
6
#   http://www.opencores.org/project,amber                      //
7
#                                                               //
8
#   Description                                                 //
9
#   Cross-compiles the mini-libc c and assembly files           //
10
#   into objects for inclusion with other applications.         //
11
#                                                               //
12
#   Author(s):                                                  //
13
#       - Conor Santifort, csantifort.amber@gmail.com           //
14
#                                                               //
15
#/ ///////////////////////////////////////////////////////////////
16
#                                                               //
17
#  Copyright (C) 2010 Authors and OPENCORES.ORG                 //
18
#                                                               //
19
#  This source file may be used and distributed without         //
20
#  restriction provided that this copyright statement is not    //
21
#  removed from the file and that any derivative work contains  //
22
#  the original copyright notice and the associated disclaimer. //
23
#                                                               //
24
#  This source file is free software; you can redistribute it   //
25
#  and/or modify it under the terms of the GNU Lesser General   //
26
#  Public License as published by the Free Software Foundation; //
27
#  either version 2.1 of the License, or (at your option) any   //
28
#  later version.                                               //
29
#                                                               //
30
#  This source is distributed in the hope that it will be       //
31
#  useful, but WITHOUT ANY WARRANTY; without even the implied   //
32
#  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      //
33
#  PURPOSE.  See the GNU Lesser General Public License for more //
34
#  details.                                                     //
35
#                                                               //
36
#  You should have received a copy of the GNU Lesser General    //
37
#  Public License along with this source; if not, download it   //
38
#  from http://www.opencores.org/lgpl.shtml                     //
39
#                                                               //
40
# ----------------------------------------------------------------
41
# Compile mini-libc
42
 
43
AMBER_CROSSTOOL ?= amber-crosstool-not-defined
44
 
45
 SRC = printf.c memcpy.c libc_asm.S
46
TGT  = printf
47
 
48
 OBJ = $(addsuffix .o,   $(basename $(SRC)))
49
  CC = $(AMBER_CROSSTOOL)-gcc
50 31 csantifort
 
51
# optimize for size
52
OPTIMIZE = -Os
53 2 csantifort
 
54 31 csantifort
CFLAGS  = -c -march=armv2a -mno-thumb-interwork $(OPTIMIZE) -ffreestanding -I../include
55 2 csantifort
ASFLAGS = -I../include
56
 
57
$(TGT): $(OBJ)
58
 
59
 
60
clean:
61
        @rm -rfv *.o *.elf *.dis *.map *.mem $(MMP)
62
 

powered by: WebSVN 2.1.0

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