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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [libc/] [sysdeps/] [linux/] [i960/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
# Makefile for uClibc
2
#
3
# Copyright (C) 2000-2003 Erik Andersen 
4
#
5
# This program is free software; you can redistribute it and/or modify it under
6
# the terms of the GNU Library General Public License as published by the Free
7
# Software Foundation; either version 2 of the License, or (at your option) any
8
# later version.
9
#
10
# This program is distributed in the hope that it will be useful, but WITHOUT
11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
13
# details.
14
#
15
# You should have received a copy of the GNU Library General Public License
16
# along with this program; if not, write to the Free Software Foundation, Inc.,
17
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
 
19
TOPDIR=../../../../
20
include $(TOPDIR)Rules.mak
21
ASFLAGS=$(CFLAGS)
22
 
23
#FIXME -- this arch should include its own crti.S and crtn.S
24
UCLIBC_CTOR_DTOR=n
25
 
26
CRT0_SRC = crt0.S
27
CRT0_OBJ = crt0.o crt1.o
28
CTOR_TARGETS=$(TOPDIR)lib/crti.o $(TOPDIR)lib/crtn.o
29
 
30
SSRC=clone.S _mmap.S setjmp.S vfork.S
31
SOBJS=$(patsubst %.S,%.o, $(SSRC))
32
 
33
CSRC=
34
COBJS=$(patsubst %.c,%.o, $(CSRC))
35
 
36
OBJS=$(SOBJS) $(COBJS)
37
 
38
all: $(OBJS) $(LIBC)
39
 
40
$(LIBC): ar-target
41
 
42
ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS)
43
        $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
44
        cp $(CRT0_OBJ) $(TOPDIR)lib/
45
 
46
$(CRT0_OBJ): $(CRT0_SRC)
47
        $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
48
        $(STRIPTOOL) -x -R .note -R .comment $*.o
49
 
50
$(SOBJS): %.o : %.S
51
        $(CC) $(CFLAGS) -c $< -o $@
52
        $(STRIPTOOL) -x -R .note -R .comment $*.o
53
 
54
$(COBJS): %.o : %.c
55
        $(CC) $(CFLAGS) -c $< -o $@
56
        $(STRIPTOOL) -x -R .note -R .comment $*.o
57
 
58
ifeq ($(strip $(UCLIBC_CTOR_DTOR)),y)
59
crti.o: crti.S
60
        $(CC) $(CFLAGS) -c crti.S -o crti.o
61
 
62
$(TOPDIR)lib/crti.o: crti.o
63
        $(INSTALL) -d $(TOPDIR)lib/
64
        cp crti.o $(TOPDIR)lib/
65
 
66
crtn.o: crtn.S
67
        $(CC) $(CFLAGS) -c crtn.S -o crtn.o
68
 
69
$(TOPDIR)lib/crtn.o: crtn.o
70
        $(INSTALL) -d $(TOPDIR)lib/
71
        cp crtn.o $(TOPDIR)lib/
72
else
73
$(TOPDIR)lib/crti.o:
74
        $(INSTALL) -d $(TOPDIR)lib/
75
        $(AR) $(ARFLAGS) $(TOPDIR)lib/crti.o
76
$(TOPDIR)lib/crtn.o:
77
        $(INSTALL) -d $(TOPDIR)lib/
78
        $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o
79
endif
80
 
81
 
82
headers:
83
 
84
 
85
clean:
86
        $(RM) *.[oa] *~ core
87
        $(RM) bits/sysnum.h
88
 

powered by: WebSVN 2.1.0

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