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.2 2007/08/23 06:52:02 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
22 CRTS_CFLAGS= -DCRTSTUFFS_O -DSHARED ${PICFLAG}
28 ${NOBJS} ${SOBJS}: ${HDRS}
30 crtbegin.o: ${BEGINSRC}
31 ${CC} ${CFLAGS} -g0 -DCRT_BEGIN \
32 -c -o ${.TARGET} ${.ALLSRC:N*.h}
34 crtbeginS.o: ${BEGINSRC}
35 ${CC} ${CFLAGS} -g0 -DCRT_BEGIN ${CRTS_CFLAGS} \
36 -c -o ${.TARGET} ${.ALLSRC:N*.h}
39 ${CC} ${CFLAGS} -g0 -DCRT_END \
40 -c -o ${.TARGET} ${.ALLSRC:N*.h}
43 ${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \
44 -c -o ${.TARGET} ${.ALLSRC:N*.h}
46 CLEANFILES+= tm.h options.h auto-host.h
47 beforedepend: tm.h options.h auto-host.h
48 tm.h: ${CCDIR}/cc_prep/Makefile
49 ${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} GCCDIR=${GCCDIR} ${.TARGET}
55 echo '#include "dragonfly-native.h"' > ${.TARGET}
60 ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
61 ${INSTALLOBJS} ${DESTDIR}${TARGET_LIBDIR}
64 rm -f ${CLEANFILES} ${OBJS} ${OBJS:S/$/.tmp/}