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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [libnosys/] [Makefile.in] - Blame information for rev 831

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

Line No. Rev Author Line
1 148 jeremybenn
# Copyright (c) 1998 Cygnus Support
2
#
3
# The authors hereby grant permission to use, copy, modify, distribute,
4
# and license this software and its documentation for any purpose, provided
5
# that existing copyright notices are retained in all copies and that this
6
# notice is included verbatim in any distributions. No written agreement,
7
# license, or royalty fee is required for any of the authorized uses.
8
# Modifications to this software may be copyrighted by their authors
9
# and need not follow the licensing terms described here, provided that
10
# the new terms are clearly indicated on the first page of each file where
11
# they apply.
12
 
13
DESTDIR =
14
VPATH = @srcdir@
15
srcdir = @srcdir@
16
objdir = .
17
srcroot = $(srcdir)/../..
18
objroot = $(objdir)/../..
19
 
20
prefix = @prefix@
21
exec_prefix = @exec_prefix@
22
 
23
host_alias = @host_alias@
24
target_alias = @target_alias@
25
program_transform_name = @program_transform_name@
26
 
27
bindir = @bindir@
28
libdir = @libdir@
29
tooldir = $(exec_prefix)/$(target_alias)
30
 
31
# Multilib support variables.
32
# TOP is used instead of MULTI{BUILD,SRC}TOP.
33
MULTIDIRS =
34
MULTISUBDIR =
35
MULTIDO = true
36
MULTICLEAN = true
37
 
38
INSTALL = @INSTALL@
39
INSTALL_PROGRAM = @INSTALL_PROGRAM@
40
INSTALL_DATA = @INSTALL_DATA@
41
 
42
SHELL = /bin/sh
43
 
44
CC = @CC@
45
 
46
#AS = @AS@
47
AS = `if [ -f ${objroot}/../gas/as-new ] ; \
48
        then echo ${objroot}/../gas/as-new ; \
49
        else echo as ; fi`
50
 
51
AR = @AR@
52
 
53
#LD = @LD@
54
LD = `if [ -f ${objroot}/../ld/ld-new ] ; \
55
        then echo ${objroot}/../ld/ld-new ; \
56
        else echo ld ; fi`
57
 
58
RANLIB = @RANLIB@
59
 
60
OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
61
        then echo ${objroot}/../binutils/objdump ; \
62
        else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
63
OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
64
        then echo ${objroot}/../binutils/objcopy ; \
65
        else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
66
 
67
# object files needed
68
OBJS = chown.o close.o environ.o errno.o execve.o fork.o fstat.o \
69
        getpid.o gettod.o isatty.o kill.o link.o lseek.o open.o \
70
        read.o readlink.o sbrk.o stat.o symlink.o times.o unlink.o \
71
        wait.o write.o _exit.o
72
 
73
# Object files specific to particular targets.
74
EVALOBJS = ${OBJS}
75
 
76
GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \
77
        then echo -L${objroot}/../gcc ; fi`
78
 
79
OUTPUTS = libnosys.a
80
 
81
NEWLIB_CFLAGS = `if [ -d ${objroot}/newlib ]; then echo -I${objroot}/newlib/targ-include -I${srcroot}/newlib/libc/include; fi`
82
NEWLIB_LDFLAGS = `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/newlib/ -L${objroot}/newlib/; fi`
83
 
84
INCLUDES = -I. -I$(srcdir)/..
85
# Note that when building the library, ${MULTILIB} is not the way multilib
86
# options are passed; they're passed in $(CFLAGS).
87
CFLAGS_FOR_TARGET = ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
88
LDFLAGS_FOR_TARGET = ${MULTILIB} ${NEWLIB_LDFLAGS}
89
AR_FLAGS = qc
90
 
91
.c.o:
92
        $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $<
93
 
94
.C.o:
95
        $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $<
96
.s.o:
97
        $(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $<
98
 
99
#
100
# GCC knows to run the preprocessor on .S files before it assembles them.
101
#
102
.S.o:
103
        $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c $<
104
 
105
#
106
# this is a bogus target that'll produce an assembler from the
107
# C source with the right compiler options. this is so we can
108
# track down code generation or debug symbol bugs.
109
#
110
.c.s:
111
        $(CC) $(CFLAGS_FOR_TARGET) -S $(INCLUDES) $(CFLAGS) $<
112
 
113
all: ${OUTPUTS}
114
 
115
#
116
# here's where we build the library for each target
117
#
118
 
119
libnosys.a: $(EVALOBJS)
120
        ${AR} ${ARFLAGS} $@ $(EVALOBJS)
121
        ${RANLIB} $@
122
 
123
doc:
124
 
125
clean mostlyclean:
126
        rm -f $(OUTPUTS) *.i *~ *.o *-test *.srec *.dis *.map *.x
127
 
128
distclean maintainer-clean realclean: clean
129
        rm -f Makefile config.status $(OUTPUTS)
130
 
131
.PHONY: install info install-info clean-info
132
install:
133
        @for outputs in ${OUTPUTS}; do\
134
         mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
135
         $(INSTALL_PROGRAM) $${outputs} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
136
        done
137
 
138
info:
139
install-info:
140
clean-info:
141
 
142
Makefile: Makefile.in config.status @host_makefile_frag_path@
143
        $(SHELL) config.status
144
 
145
config.status: configure
146
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

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