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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [sysdeps/] [m68k/] [crt/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#
2
# Makefile for crt0.o of Linux
3
#
4
#
5
 
6
LD=true
7
MV=true
8
override STATIC_SHARED=false
9
override SHARED=false
10
override DEBUG=false
11
 
12
TOPDIR=../../../..
13
 
14
include $(TOPDIR)/Makeconfig
15
include $(TOPDIR)/Makerules
16
 
17
CFLAGS=-DDEFAULT_LOCALE="`$(CC) -E defaultlocale.c | grep DEFAULT_LOCALE | sed -e 's/^[^:]*://' -e 's/|/+/g'`"
18
PIC_CFLAGS=$(CFLAGS)
19
SHARED_CFLAGS=$(CFLAGS)
20
DEBUG_CFLAGS=$(CFLAGS)
21
 
22
PROFILE_CFLAGS=$(CFLAGS)
23
CHECKER_CFLAGS=$(CFLAGS)
24
CC = $(REALCC)
25
 
26
SRCS= defaultlocale.c
27
 
28
ifeq ($(ELF),true)
29
 
30
lib:: $(ELF_SHARED_DIR)/crt1.o \
31
        $(ELF_SHARED_DIR)/crti.o $(ELF_SHARED_DIR)/crtn.o \
32
        $(ELF_PROFILE_DIR)/gcrt1.o
33
 
34
$(ELF_SHARED_DIR)/crt1.o: crt1.S crt0.S
35
$(ELF_PROFILE_DIR)/gcrt1.o: gcrt1.S gcrt0.S
36
 
37
else
38
 
39
ifeq ($(CHECKER),true)
40
lib:: $(CHECKER_DIR)/chkrcrt0.o
41
endif
42
 
43
ifeq ($(PROFILE),true)
44
lib:: $(PROFILE_DIR)/gcrt0.o
45
endif
46
 
47
ifeq ($(STATIC),true)
48
lib:: $(STATIC_DIR)/crt0.o
49
endif
50
 
51
endif
52
 
53
 
54
lib::
55
        @true
56
 
57
realclean clean:
58
        $(RM) -f core *.s *.o *.a tmp_make foo
59
 
60
depend:
61
        $(CC) -M $(SRCS) | \
62
                sed -e 's,^[    ]*\(.*\.o\)[    ]*:,$(STATIC_DIR)/crt0.o $(PROFILE_DIR)/gcrt0.o $(ELF_SHARED_DIR)/crt1.o $(ELF_PROFILE_DIR)/gcrt1.o $(CHECKER_DIR)/checkcrt0.o:,' > .depend
63
 
64
#
65
# include a dependency file if one exists
66
#
67
ifeq (.depend,$(wildcard .depend))
68
include .depend
69
endif

powered by: WebSVN 2.1.0

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