Deleted Added
full compact
Makefile (96512) Makefile (96530)
1# $FreeBSD: head/gnu/lib/csu/Makefile 96512 2002-05-13 10:53:24Z ru $
1# $FreeBSD: head/gnu/lib/csu/Makefile 96530 2002-05-13 15:28:00Z ru $
2
3GCCDIR= ${.CURDIR}/../../../contrib/gcc
4.PATH: ${GCCDIR}
5
6CCDIR= ${.CURDIR}/../../usr.bin/cc
7.include "${CCDIR}/Makefile.tgt"
8
9SRCS= crtstuff.c tconfig.h

--- 10 unchanged lines hidden (view full) ---

20.if ${TARGET_ARCH} == "sparc64"
21.PATH: ${GCCDIR}/config/${GCC_CPU}
22TGTOBJS= crtfastmath.o
23SRCS+= crtfastmath.c
24.endif
25
26all: ${OBJS} ${SOBJS} ${TGTOBJS}
27
2
3GCCDIR= ${.CURDIR}/../../../contrib/gcc
4.PATH: ${GCCDIR}
5
6CCDIR= ${.CURDIR}/../../usr.bin/cc
7.include "${CCDIR}/Makefile.tgt"
8
9SRCS= crtstuff.c tconfig.h

--- 10 unchanged lines hidden (view full) ---

20.if ${TARGET_ARCH} == "sparc64"
21.PATH: ${GCCDIR}/config/${GCC_CPU}
22TGTOBJS= crtfastmath.o
23SRCS+= crtfastmath.c
24.endif
25
26all: ${OBJS} ${SOBJS} ${TGTOBJS}
27
28CLEANFILES= ${OBJS} ${SOBJS} ${TGTOBJS}
29
28crtbegin.o crtbegin.So crtend.o crtend.So: ${SRCS}
29
30crtbegin.o:
31 ${CC} ${CFLAGS} -g0 -DCRT_BEGIN \
32 -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*}
33
34crtbegin.So:
35 ${CC} ${CFLAGS} -g0 -DCRT_BEGIN ${CRTS_CFLAGS} \
36 -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*}
37
38crtend.o:
39 ${CC} ${CFLAGS} -g0 -DCRT_END \
40 -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*}
41
42crtend.So:
43 ${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \
44 -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*}
45
30crtbegin.o crtbegin.So crtend.o crtend.So: ${SRCS}
31
32crtbegin.o:
33 ${CC} ${CFLAGS} -g0 -DCRT_BEGIN \
34 -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*}
35
36crtbegin.So:
37 ${CC} ${CFLAGS} -g0 -DCRT_BEGIN ${CRTS_CFLAGS} \
38 -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*}
39
40crtend.o:
41 ${CC} ${CFLAGS} -g0 -DCRT_END \
42 -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*}
43
44crtend.So:
45 ${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \
46 -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*}
47
46CLEANFILES= tconfig.h
48CLEANFILES+= tconfig.h
47tconfig.h: ${CCDIR}/cc_tools/Makefile
48 ${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} GCCDIR=${GCCDIR} ${.TARGET}
49
50realinstall:
51.for file in ${OBJS} ${SOBJS} ${TGTOBJS}
52 ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
53 ${file} ${DESTDIR}${LIBDIR}/${file:S/.So$/S.o/}
54.endfor
55
56.include <bsd.lib.mk>
49tconfig.h: ${CCDIR}/cc_tools/Makefile
50 ${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} GCCDIR=${GCCDIR} ${.TARGET}
51
52realinstall:
53.for file in ${OBJS} ${SOBJS} ${TGTOBJS}
54 ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
55 ${file} ${DESTDIR}${LIBDIR}/${file:S/.So$/S.o/}
56.endfor
57
58.include <bsd.lib.mk>