? d.diff ? obj Index: Makefile =================================================================== RCS file: /home/ncvs/src/gnu/lib/csu/Makefile,v retrieving revision 1.11 diff -c -r1.11 Makefile *** Makefile 17 May 2002 03:04:47 -0000 1.11 --- Makefile 17 May 2002 07:39:11 -0000 *************** *** 6,12 **** --- 6,23 ---- CCDIR= ${.CURDIR}/../../usr.bin/cc .include "${CCDIR}/Makefile.tgt" + .PATH: ${GCCDIR}/config/${GCC_CPU} + + .if ${TARGET_ARCH} == "ia64" + BEGINSRC= crtbegin.asm + ENDSRC= crtend.asm + CFLAGS+= -x assembler-with-cpp # Ugly hack + .endif + .if !defined(BEGINSRC) && !defined(ENDSRC) SRCS= crtstuff.c tconfig.h + BEGINSRC= crtstuff.c + ENDSRC= crtstuff.c + .endif OBJS= crtbegin.o crtend.o SOBJS= crtbegin.So crtend.So CFLAGS+= -DIN_GCC -DHAVE_LD_EH_FRAME_HDR *************** *** 14,29 **** -fno-exceptions -fno-omit-frame-pointer CFLAGS+= -I${GCCDIR}/config -I${GCCDIR} -I. \ -I${CCDIR}/cc_tools ! CRTS_CFLAGS= -DCRTSTUFFS_O ${PICFLAG} MKDEPCMD= CC="${CC}" MKDEP_CPP_OPTS="-M -DCRT_BEGIN" mkdep .if ${TARGET_ARCH} == "powerpc" - .PATH: ${GCCDIR}/config/${GCC_CPU} TGTOBJS= crtsavres.o SRCS+= crtsavres.asm .endif .if ${TARGET_ARCH} == "sparc64" - .PATH: ${GCCDIR}/config/${GCC_CPU} TGTOBJS= crtfastmath.o SRCS+= crtfastmath.c .endif --- 25,38 ---- -fno-exceptions -fno-omit-frame-pointer CFLAGS+= -I${GCCDIR}/config -I${GCCDIR} -I. \ -I${CCDIR}/cc_tools ! CRTS_CFLAGS= -DCRTSTUFFS_O -DSHARED ${PICFLAG} MKDEPCMD= CC="${CC}" MKDEP_CPP_OPTS="-M -DCRT_BEGIN" mkdep .if ${TARGET_ARCH} == "powerpc" TGTOBJS= crtsavres.o SRCS+= crtsavres.asm .endif .if ${TARGET_ARCH} == "sparc64" TGTOBJS= crtfastmath.o SRCS+= crtfastmath.c .endif *************** *** 32,54 **** CLEANFILES= ${OBJS} ${SOBJS} ${TGTOBJS} ! crtbegin.o crtbegin.So crtend.o crtend.So: ${SRCS} ! ! crtbegin.o: ${CC} ${CFLAGS} -g0 -DCRT_BEGIN \ ! -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*} ! crtbegin.So: ${CC} ${CFLAGS} -g0 -DCRT_BEGIN ${CRTS_CFLAGS} \ ! -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*} ! crtend.o: ${CC} ${CFLAGS} -g0 -DCRT_END \ ! -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*} ! crtend.So: ${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \ ! -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*} CLEANFILES+= tconfig.h tconfig.h: ${CCDIR}/cc_tools/Makefile --- 41,61 ---- CLEANFILES= ${OBJS} ${SOBJS} ${TGTOBJS} ! crtbegin.o: ${BEGINSRC} ${CC} ${CFLAGS} -g0 -DCRT_BEGIN \ ! -c -o ${.TARGET} ${.ALLSRC} ! crtbegin.So: ${BEGINSRC} ${CC} ${CFLAGS} -g0 -DCRT_BEGIN ${CRTS_CFLAGS} \ ! -c -o ${.TARGET} ${.ALLSRC} ! crtend.o: ${ENDSRC} ${CC} ${CFLAGS} -g0 -DCRT_END \ ! -c -o ${.TARGET} ${.ALLSRC} ! crtend.So: ${ENDSRC} ${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \ ! -c -o ${.TARGET} ${.ALLSRC} CLEANFILES+= tconfig.h tconfig.h: ${CCDIR}/cc_tools/Makefile