Makefile (c6879c6c14eedbd060ba588a3129a6c60ebbe783) | Makefile (5d031e332fb8a7cb0b3ccd7545048132966a45ec) |
---|---|
1# $FreeBSD$ 2 3.PATH: ${.CURDIR:H}/common 4 5SRCS= crt1.c crti.S crtn.S 6OBJS= ${SRCS:N*.h:R:S/$/.o/g} | 1# $FreeBSD$ 2 3.PATH: ${.CURDIR:H}/common 4 5SRCS= crt1.c crti.S crtn.S 6OBJS= ${SRCS:N*.h:R:S/$/.o/g} |
7OBJS+= Scrt1.o gcrt1.o | 7OBJS+= crtsavres.o Scrt1.o gcrt1.o |
8CFLAGS+= -I${.CURDIR:H}/common \ 9 -I${SRCTOP}/lib/libc/include \ 10 -mlongcall -DCRT_IRELOC_SUPPRESS 11 12FILES= ${OBJS} 13FILESMODE= ${LIBMODE} 14FILESOWN= ${LIBOWN} 15FILESGRP= ${LIBGRP} 16FILESDIR= ${LIBDIR} 17# These FILES qualify as libraries for the purpose of LIBRARIES_ONLY. 18.undef LIBRARIES_ONLY 19 20CLEANFILES= ${OBJS} | 8CFLAGS+= -I${.CURDIR:H}/common \ 9 -I${SRCTOP}/lib/libc/include \ 10 -mlongcall -DCRT_IRELOC_SUPPRESS 11 12FILES= ${OBJS} 13FILESMODE= ${LIBMODE} 14FILESOWN= ${LIBOWN} 15FILESGRP= ${LIBGRP} 16FILESDIR= ${LIBDIR} 17# These FILES qualify as libraries for the purpose of LIBRARIES_ONLY. 18.undef LIBRARIES_ONLY 19 20CLEANFILES= ${OBJS} |
21CLEANFILES+= crt1.s gcrt1.s Scrt1.s | 21CLEANFILES+= crt1.s crtsavres.s gcrt1.s Scrt1.s |
22 23# See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not 24# directly compiled to .o files. 25 26crt1.s: crt1.c 27 ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c 28 sed ${SED_FIX_NOTE} ${.TARGET} 29 | 22 23# See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not 24# directly compiled to .o files. 25 26crt1.s: crt1.c 27 ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c 28 sed ${SED_FIX_NOTE} ${.TARGET} 29 |
30# On powerpc64 crtsavres is an empty file 31crtsavres.s: 32 touch ${.TARGET} 33 |
|
30crt1.o: crt1.s 31 ${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} crt1.s 32 33gcrt1.s: crt1.c 34 ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c 35 sed ${SED_FIX_NOTE} ${.TARGET} 36 37gcrt1.o: gcrt1.s 38 ${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} gcrt1.s 39 40Scrt1.s: crt1.c 41 ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c 42 sed ${SED_FIX_NOTE} ${.TARGET} 43 44Scrt1.o: Scrt1.s 45 ${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} Scrt1.s 46 47.include <bsd.lib.mk> | 34crt1.o: crt1.s 35 ${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} crt1.s 36 37gcrt1.s: crt1.c 38 ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c 39 sed ${SED_FIX_NOTE} ${.TARGET} 40 41gcrt1.o: gcrt1.s 42 ${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} gcrt1.s 43 44Scrt1.s: crt1.c 45 ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c 46 sed ${SED_FIX_NOTE} ${.TARGET} 47 48Scrt1.o: Scrt1.s 49 ${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} Scrt1.s 50 51.include <bsd.lib.mk> |