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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [libgloss/] [config/] [ppc.mh] - Blame information for rev 1778

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

Line No. Rev Author Line
1 1005 ivang
NEWLIB_CFLAGS = `if [ -d ${objroot}/newlib ]; then echo -I${objroot}/newlib/targ-include -I${srcroot}/newlib/libc/include; fi`
2
NEWLIB_LDFLAGS = `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/newlib/ -L${objroot}/newlib/; fi`
3
 
4
# For the PowerPC, always add -mrelocatable-lib -mno-eabi.  These are set for the
5
# multilibs, but are ignored when building the toplevel directory.
6
CFLAGS_MRELOCATABLE = -mrelocatable-lib -mno-eabi
7
 
8
INCLUDES = -I. -I$(srcdir)/..
9
# Note that when building the library, ${MULTILIB} is not the way multilib
10
# options are passed; they're passed in $(CFLAGS).
11
CFLAGS_FOR_TARGET = -O2 -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
12
LDFLAGS_FOR_TARGET = ${MULTILIB} ${NEWLIB_LDFLAGS}
13
AR_FLAGS = qc
14
 
15
.c.o:
16
        $(CC) $(CFLAGS_FOR_TARGET) $(CFLAGS_MRELOCATABLE) -O2 $(INCLUDES) -c $(CFLAGS) $<
17
 
18
.C.o:
19
        $(CC) $(CFLAGS_FOR_TARGET) $(CFLAGS_MRELOCATABLE) -O2 $(INCLUDES) -c $(CFLAGS) $<
20
.s.o:
21
        $(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $<
22
 
23
#
24
# GCC knows to run the preprocessor on .S files before it assembles them.
25
#
26
.S.o:
27
        $(CC) $(CFLAGS_FOR_TARGET) $(CFLAGS_MRELOCATABLE) $(INCLUDES) $(CFLAGS) -c $<
28
 
29
#
30
# this is a bogus target that'll produce an assembler from the
31
# C source with the right compiler options. this is so we can
32
# track down code generation or debug symbol bugs.
33
#
34
.c.s:
35
        $(CC) $(CFLAGS_FOR_TARGET) $(CFLAGS_MRELOCATABLE) -S $(INCLUDES) $(CFLAGS) $<

powered by: WebSVN 2.1.0

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