Changeset View
Changeset View
Standalone View
Standalone View
head/lib/csu/powerpc64/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
.PATH: ${.CURDIR:H}/common | .PATH: ${.CURDIR:H}/common | ||||
SRCS= crt1.c crti.S crtn.S | SRCS= crt1.c crti.S crtn.S | ||||
OBJS= ${SRCS:N*.h:R:S/$/.o/g} | OBJS= ${SRCS:N*.h:R:S/$/.o/g} | ||||
OBJS+= Scrt1.o gcrt1.o | OBJS+= crtsavres.o Scrt1.o gcrt1.o | ||||
CFLAGS+= -I${.CURDIR:H}/common \ | CFLAGS+= -I${.CURDIR:H}/common \ | ||||
-I${SRCTOP}/lib/libc/include \ | -I${SRCTOP}/lib/libc/include \ | ||||
-mlongcall -DCRT_IRELOC_SUPPRESS | -mlongcall -DCRT_IRELOC_SUPPRESS | ||||
FILES= ${OBJS} | FILES= ${OBJS} | ||||
FILESMODE= ${LIBMODE} | FILESMODE= ${LIBMODE} | ||||
FILESOWN= ${LIBOWN} | FILESOWN= ${LIBOWN} | ||||
FILESGRP= ${LIBGRP} | FILESGRP= ${LIBGRP} | ||||
FILESDIR= ${LIBDIR} | FILESDIR= ${LIBDIR} | ||||
# These FILES qualify as libraries for the purpose of LIBRARIES_ONLY. | # These FILES qualify as libraries for the purpose of LIBRARIES_ONLY. | ||||
.undef LIBRARIES_ONLY | .undef LIBRARIES_ONLY | ||||
CLEANFILES= ${OBJS} | CLEANFILES= ${OBJS} | ||||
CLEANFILES+= crt1.s gcrt1.s Scrt1.s | CLEANFILES+= crt1.s crtsavres.s gcrt1.s Scrt1.s | ||||
# See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not | # See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not | ||||
# directly compiled to .o files. | # directly compiled to .o files. | ||||
crt1.s: crt1.c | crt1.s: crt1.c | ||||
${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c | ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c | ||||
sed ${SED_FIX_NOTE} ${.TARGET} | sed ${SED_FIX_NOTE} ${.TARGET} | ||||
# On powerpc64 crtsavres is an empty file | |||||
crtsavres.s: | |||||
touch ${.TARGET} | |||||
crt1.o: crt1.s | crt1.o: crt1.s | ||||
${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} crt1.s | ${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} crt1.s | ||||
gcrt1.s: crt1.c | gcrt1.s: crt1.c | ||||
${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c | ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c | ||||
sed ${SED_FIX_NOTE} ${.TARGET} | sed ${SED_FIX_NOTE} ${.TARGET} | ||||
Show All 11 Lines |