1 # $FreeBSD: src/gnu/lib/csu/Makefile,v 1.24 2004/09/10 06:48:04 ru Exp $
2 # $DragonFly: src/gnu/lib/csu/Makefile.csu,v 1.1 2007/01/15 18:01:44 corecode Exp $
4 .include "${CSUDIR}/Makefile.csu"
9 NOBJS= crtbegin.o crtend.o
10 SOBJS= crtbeginS.o crtendS.o
12 OBJS+= ${NOBJS} ${SOBJS}
13 INSTALLOBJS+= ${NOBJS} ${SOBJS}
15 OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
17 CFLAGS+= -finhibit-size-directive -fno-inline-functions \
18 -fno-exceptions -fno-zero-initialized-in-bss \
19 -fno-omit-frame-pointer -fno-unit-at-a-time
21 CFLAGS+= -DUSED_FOR_TARGET
23 CRTS_CFLAGS= -DCRTSTUFFS_O -DSHARED ${PICFLAG}
29 ${NOBJS} ${SOBJS}: ${HDRS}
31 crtbegin.o: ${BEGINSRC}
32 ${CC} ${CFLAGS} -g0 -DCRT_BEGIN \
33 -c -o ${.TARGET} ${.ALLSRC:N*.h}
35 crtbeginS.o: ${BEGINSRC}
36 ${CC} ${CFLAGS} -g0 -DCRT_BEGIN ${CRTS_CFLAGS} \
37 -c -o ${.TARGET} ${.ALLSRC:N*.h}
40 ${CC} ${CFLAGS} -g0 -DCRT_END \
41 -c -o ${.TARGET} ${.ALLSRC:N*.h}
44 ${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \
45 -c -o ${.TARGET} ${.ALLSRC:N*.h}
47 CLEANFILES+= tm.h options.h auto-host.h
48 beforedepend: tm.h options.h auto-host.h
49 tm.h: ${CCDIR}/cc_prep/Makefile
50 ${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} GCCDIR=${GCCDIR} ${.TARGET}
56 echo '#include "dragonfly-native.h"' > ${.TARGET}
61 ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
62 ${INSTALLOBJS} ${DESTDIR}${TARGET_LIBDIR}
65 rm -f ${CLEANFILES} ${OBJS} ${OBJS:S/$/.tmp/}