5ca34122ec
This partially reverts r270170 for lib/csu/i386 while retaining the change for using bsd.lib.mk. These FILES groups could go into lib/csu/Makefile.inc but I've kept them in the Makefiles for clarity. Sponsored by: EMC / Isilon Storage Division
46 lines
1016 B
Makefile
46 lines
1016 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../common
|
|
|
|
SRCS= crt1.c crti.S crtn.S
|
|
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
|
|
OBJS+= Scrt1.o gcrt1.o
|
|
CFLAGS+= -I${.CURDIR}/../common \
|
|
-I${.CURDIR}/../../libc/include
|
|
CFLAGS+= -fno-omit-frame-pointer
|
|
|
|
FILES= ${OBJS}
|
|
FILESMODE= ${LIBMODE}
|
|
FILESOWN= ${LIBOWN}
|
|
FILESGRP= ${LIBGRP}
|
|
FILESDIR= ${LIBDIR}
|
|
|
|
CLEANFILES= ${OBJS}
|
|
CLEANFILES+= crt1.s gcrt1.s Scrt1.s
|
|
|
|
# See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not
|
|
# directly compiled to .o files.
|
|
|
|
crt1.s: crt1.c
|
|
${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c
|
|
sed ${SED_FIX_NOTE} ${.TARGET}
|
|
|
|
crt1.o: crt1.s
|
|
${CC} ${ACFLAGS} -c -o ${.TARGET} crt1.s
|
|
|
|
gcrt1.s: crt1.c
|
|
${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c
|
|
sed ${SED_FIX_NOTE} ${.TARGET}
|
|
|
|
gcrt1.o: gcrt1.s
|
|
${CC} ${ACFLAGS} -c -o ${.TARGET} gcrt1.s
|
|
|
|
Scrt1.s: crt1.c
|
|
${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c
|
|
sed ${SED_FIX_NOTE} ${.TARGET}
|
|
|
|
Scrt1.o: Scrt1.s
|
|
${CC} ${ACFLAGS} -c -o ${.TARGET} Scrt1.s
|
|
|
|
.include <bsd.lib.mk>
|