Makefile (22996) | Makefile (34814) |
---|---|
1# | 1# |
2# $Id$ | 2# $Id: Makefile,v 1.15 1997/02/22 15:45:08 peter Exp $ |
3# 4 5LIB= gcc 6 7# Install libgcc_pic.a, since ld.so uses it. 8INSTALL_PIC_ARCHIVE= yes 9 10# 11# XXX This is a hack, but it seems to work. libgcc1.a is supposed to be 12# compiled by the native compiler, and libgcc2.a is meant to be compiled 13# by *this* version of gcc. 14# 15# Normally, this does not make any difference, since we only have gcc, but 16# when bootstrapping from gcc-2.6.3, we have to use the freshly built 2.7.2 | 3# 4 5LIB= gcc 6 7# Install libgcc_pic.a, since ld.so uses it. 8INSTALL_PIC_ARCHIVE= yes 9 10# 11# XXX This is a hack, but it seems to work. libgcc1.a is supposed to be 12# compiled by the native compiler, and libgcc2.a is meant to be compiled 13# by *this* version of gcc. 14# 15# Normally, this does not make any difference, since we only have gcc, but 16# when bootstrapping from gcc-2.6.3, we have to use the freshly built 2.7.2 |
17# compiler for some of the libgcc2.c __attribute__ stuff. | 17# compiler for some of the libgcc2.c __attribute__ stuff. If there is no 18# freshly built compiler in a relative obj directory, then `make world' 19# must have recently installed it. |
18# | 20# |
19.if exists(${.OBJDIR}/../cc) | 21.if exists(${.OBJDIR}/../cc/cc) |
20XCC= ${.OBJDIR}/../cc/cc | 22XCC= ${.OBJDIR}/../cc/cc |
21.else | 23.elif exists(${.CURDIR}/../cc/cc) |
22XCC= ${.CURDIR}/../cc/cc | 24XCC= ${.CURDIR}/../cc/cc |
25.else 26XCC= cc |
|
23.endif 24 | 27.endif 28 |
25.if exists(${.OBJDIR}/../cc1) | 29.if exists(${.OBJDIR}/../cc1/cc1) |
26XCC+= -B${.OBJDIR}/../cc1/ | 30XCC+= -B${.OBJDIR}/../cc1/ |
27.else | 31.elif exists(${.CURDIR}/../cc1/cc1) |
28XCC+= -B${.CURDIR}/../cc1/ 29.endif 30 | 32XCC+= -B${.CURDIR}/../cc1/ 33.endif 34 |
31.if exists(${.OBJDIR}/../cpp) | 35.if exists(${.OBJDIR}/../cpp/cpp) |
32XCC+= -B${.OBJDIR}/../cpp/ | 36XCC+= -B${.OBJDIR}/../cpp/ |
33.else | 37.elif exists(${.CURDIR}/../cpp/cpp) |
34XCC+= -B${.CURDIR}/../cpp/ 35.endif 36 37# Members of libgcc1.a. 38LIB1FUNCS= _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \ 39 _lshrsi3 _ashrsi3 _ashlsi3 \ 40 _divdf3 _muldf3 _negdf2 _adddf3 _subdf3 \ 41 _fixdfsi _fixsfsi _floatsidf _floatsisf _truncdfsf2 _extendsfdf2 \ --- 8 unchanged lines hidden (view full) --- 50 _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi \ 51 _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi \ 52 _fixtfdi _fixunstfdi _floatditf \ 53 __gcc_bcmp _varargs _eprintf _op_new _op_vnew _new_handler \ 54 _op_delete \ 55 _op_vdel _bb _shtab _clear_cache _trampoline __main _exit _ctors \ 56 _eh _pure 57 | 38XCC+= -B${.CURDIR}/../cpp/ 39.endif 40 41# Members of libgcc1.a. 42LIB1FUNCS= _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \ 43 _lshrsi3 _ashrsi3 _ashlsi3 \ 44 _divdf3 _muldf3 _negdf2 _adddf3 _subdf3 \ 45 _fixdfsi _fixsfsi _floatsidf _floatsisf _truncdfsf2 _extendsfdf2 \ --- 8 unchanged lines hidden (view full) --- 54 _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi \ 55 _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi \ 56 _fixtfdi _fixunstfdi _floatditf \ 57 __gcc_bcmp _varargs _eprintf _op_new _op_vnew _new_handler \ 58 _op_delete \ 59 _op_vdel _bb _shtab _clear_cache _trampoline __main _exit _ctors \ 60 _eh _pure 61 |
58LIB1OBJS=${LIB1FUNCS:T:S@$@.o@} 59LIB2OBJS=${LIB2FUNCS:T:S@$@.o@} 60LIB1SOBJS=${LIB1FUNCS:T:S@$@.so@} 61LIB2SOBJS=${LIB2FUNCS:T:S@$@.so@} 62P1OBJS=${LIB1FUNCS:T:S@$@.po@} 63P2OBJS=${LIB2FUNCS:T:S@$@.po@} | 62COMMONHDRS= config.h tconfig.h tm.h 63CFLAGS+= -I. 64CLEANFILES+= ${COMMONHDRS} |
64 | 65 |
65OBJS= ${LIB1OBJS} ${LIB2OBJS} | 66LIB1OBJS= ${LIB1FUNCS:S/$/.o/} 67LIB2OBJS= ${LIB2FUNCS:S/$/.o/} 68LIB1SOBJS= ${LIB1FUNCS:S/$/.so/} 69LIB2SOBJS= ${LIB2FUNCS:S/$/.so/} 70P1OBJS= ${LIB1FUNCS:S/$/.po/} 71P2OBJS= ${LIB2FUNCS:S/$/.po/} |
66 | 72 |
73OBJS= ${LIB1OBJS} ${LIB2OBJS} 74 75config.h: 76 echo '#include "${MACHINE_ARCH}/xm-freebsd.h"' > ${.TARGET} 77 78tconfig.h: 79 echo '#include "${MACHINE_ARCH}/xm-freebsd.h"' > tconfig.h 80 81tm.h: 82 echo '#include "${MACHINE_ARCH}/freebsd.h"' > ${.TARGET} 83 84${OBJS}: ${COMMONHDRS} 85 |
|
67${LIB1OBJS}: libgcc1.c 68 ${CC} -c ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${GCCDIR}/libgcc1.c 69 @${LD} -O ${.TARGET} -x -r ${.TARGET} 70 71${LIB2OBJS}: libgcc2.c 72 ${XCC} -c ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${GCCDIR}/libgcc2.c 73 @${LD} -O ${.TARGET} -x -r ${.TARGET} 74 --- 21 unchanged lines hidden --- | 86${LIB1OBJS}: libgcc1.c 87 ${CC} -c ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${GCCDIR}/libgcc1.c 88 @${LD} -O ${.TARGET} -x -r ${.TARGET} 89 90${LIB2OBJS}: libgcc2.c 91 ${XCC} -c ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${GCCDIR}/libgcc2.c 92 @${LD} -O ${.TARGET} -x -r ${.TARGET} 93 --- 21 unchanged lines hidden --- |