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 $
7 NOBJS= crtbegin.o crtend.o
8 SOBJS= crtbeginS.o crtendS.o
10 OBJS+= ${NOBJS} ${SOBJS}
11 INSTALLOBJS+= ${NOBJS} ${SOBJS}
13 OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
15 CFLAGS+= -finhibit-size-directive -fno-inline-functions \
16 -fno-exceptions -fno-zero-initialized-in-bss \
17 -fno-omit-frame-pointer -fno-unit-at-a-time
20 CRTS_CFLAGS= -DCRTSTUFFS_O -DSHARED ${PICFLAG}
26 ${NOBJS} ${SOBJS}: ${HDRS}
28 crtbegin.o: ${BEGINSRC}
29 ${CC} ${CFLAGS} -g0 -DCRT_BEGIN \
30 -c -o ${.TARGET} ${.ALLSRC:N*.h}
32 crtbeginS.o: ${BEGINSRC}
33 ${CC} ${CFLAGS} -g0 -DCRT_BEGIN ${CRTS_CFLAGS} \
34 -c -o ${.TARGET} ${.ALLSRC:N*.h}
37 ${CC} ${CFLAGS} -g0 -DCRT_END \
38 -c -o ${.TARGET} ${.ALLSRC:N*.h}
41 ${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \
42 -c -o ${.TARGET} ${.ALLSRC:N*.h}
44 CLEANFILES+= tm.h options.h auto-host.h
45 beforedepend: tm.h options.h auto-host.h
46 tm.h: ${CCDIR}/cc_prep/Makefile
47 ${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} GCCDIR=${GCCDIR} ${.TARGET}
53 echo '#include "dragonfly-native.h"' > ${.TARGET}
58 ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
59 ${INSTALLOBJS} ${DESTDIR}${TARGET_LIBDIR}
62 rm -f ${CLEANFILES} ${OBJS} ${OBJS:S/$/.tmp/}