Changeset View
Changeset View
Standalone View
Standalone View
lib/csu/Makefile.inc
# $FreeBSD$ | # $FreeBSD$ | ||||
SSP_CFLAGS= | SSP_CFLAGS= | ||||
NO_WMISSING_VARIABLE_DECLARATIONS= | NO_WMISSING_VARIABLE_DECLARATIONS= | ||||
.include <src.opts.mk> | .include <src.opts.mk> | ||||
.if !defined(BUILDING_TESTS) | .if !defined(BUILDING_TESTS) | ||||
OBJS+= Scrt1.o crt1.o gcrt1.o | OBJS+= Scrt1.o crt1.o gcrt1.o | ||||
OBJS+= crtbegin.o crtbeginS.o crtbeginT.o | OBJS+= crtbegin.o crtbeginS.o crtbeginT.o | ||||
OBJS+= crtend.o crtendS.o | OBJS+= crtend.o crtendS.o | ||||
OBJS+= crti.o crtn.o | OBJS+= crti.o crtn.o | ||||
CRT1OBJS+= crtbrand.o feature_note.o ignore_init_note.o | CRT1OBJS+= feature_note.o ignore_init_note.o | ||||
ACFLAGS+= -DLOCORE | ACFLAGS+= -DLOCORE | ||||
CFLAGS+= -fno-asynchronous-unwind-tables | CFLAGS+= -fno-asynchronous-unwind-tables | ||||
CFLAGS+= -fno-omit-frame-pointer | CFLAGS+= -fno-omit-frame-pointer | ||||
CFLAGS+= -I${.CURDIR:H}/common \ | CFLAGS+= -I${.CURDIR:H}/common \ | ||||
-I${SRCTOP}/lib/libc/include | -I${SRCTOP}/lib/libc/include | ||||
CFLAGS_CRTS= -DSHARED ${PICFLAG} | CFLAGS_CRTS= -DSHARED ${PICFLAG} | ||||
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} ${CRT1OBJS} crt1_c.o gcrt1_c.o Scrt1_c.o | CLEANFILES+= ${OBJS} ${CRT1OBJS} crt1_c.o gcrt1_c.o Scrt1_c.o | ||||
CLEANFILES+= crtbrand.o crtbegin_c.o crtbeginS_c.o crtbeginT_c.o | |||||
CLEANFILES+= crti_s.o | CLEANFILES+= crti_s.o | ||||
crt1.o: crt1_c.o ${CRT1OBJS} | crt1.o: crt1_c.o ${CRT1OBJS} | ||||
${LD} ${_LDFLAGS} -o ${.TARGET} -r ${.ALLSRC:M*.o} | ${LD} ${_LDFLAGS} -o ${.TARGET} -r ${.ALLSRC:M*.o} | ||||
.if ${MACHINE_ARCH} == "i386" | .if ${MACHINE_ARCH} == "i386" | ||||
${OBJCOPY} --localize-symbol _start1 ${.TARGET} | ${OBJCOPY} --localize-symbol _start1 ${.TARGET} | ||||
.endif | .endif | ||||
gcrt1_c.o: crt1_c.c | gcrt1_c.o: crt1_c.c | ||||
${CC} ${CFLAGS} -DGCRT -c -o ${.TARGET} ${.CURDIR}/crt1_c.c | ${CC} ${CFLAGS} -DGCRT -c -o ${.TARGET} ${.CURDIR}/crt1_c.c | ||||
gcrt1.o: gcrt1_c.o ${CRT1OBJS} | gcrt1.o: gcrt1_c.o ${CRT1OBJS} | ||||
${LD} ${_LDFLAGS} -o ${.TARGET} -r ${.ALLSRC:M*.o} | ${LD} ${_LDFLAGS} -o ${.TARGET} -r ${.ALLSRC:M*.o} | ||||
Scrt1_c.o: crt1_c.c | Scrt1_c.o: crt1_c.c | ||||
${CC} ${CFLAGS} -fPIC -DPIC -c -o ${.TARGET} ${.CURDIR}/crt1_c.c | ${CC} ${CFLAGS} -fPIC -DPIC -c -o ${.TARGET} ${.CURDIR}/crt1_c.c | ||||
Scrt1.o: Scrt1_c.o ${CRT1OBJS} | Scrt1.o: Scrt1_c.o ${CRT1OBJS} | ||||
${LD} ${_LDFLAGS} -o ${.TARGET} -r ${.ALLSRC:M*.o} | ${LD} ${_LDFLAGS} -o ${.TARGET} -r ${.ALLSRC:M*.o} | ||||
.if ${MACHINE_ARCH} == "i386" | .if ${MACHINE_ARCH} == "i386" | ||||
${OBJCOPY} --localize-symbol _start1 ${.TARGET} | ${OBJCOPY} --localize-symbol _start1 ${.TARGET} | ||||
.endif | .endif | ||||
crtbegin.o: crtbegin.c | crtbegin_c.o: crtbegin.c | ||||
crtbeginS.o: crtbegin.c | crtbeginS_c.o: crtbegin.c | ||||
crtbeginT.o: crtbegin.c | crtbeginT_c.o: crtbegin.c | ||||
crtbegin.o: crtbegin_c.o crtbrand.o | |||||
crtbeginS.o: crtbeginS_c.o crtbrand.o | |||||
crtbeginT.o: crtbeginT_c.o crtbrand.o | |||||
crtend.o: crtend.c | crtend.o: crtend.c | ||||
crtendS.o: crtend.c | crtendS.o: crtend.c | ||||
crtbegin.o crtend.o crtbeginT.o: | crtbegin_c.o crtend.o crtbeginT_c.o: | ||||
${CC} ${CFLAGS} -I${.CURDIR} -c -o ${.TARGET} ${.ALLSRC:N*.h:[1]} | ${CC} ${CFLAGS} -I${.CURDIR} -c -o ${.TARGET} ${.ALLSRC:N*.h:[1]} | ||||
crtbeginS.o crtendS.o: | crtbeginS_c.o crtendS.o: | ||||
${CC} ${CFLAGS} -I${.CURDIR} ${CFLAGS_CRTS} -c -o ${.TARGET} \ | ${CC} ${CFLAGS} -I${.CURDIR} ${CFLAGS_CRTS} -c -o ${.TARGET} \ | ||||
${.ALLSRC:N*.h:[1]} | ${.ALLSRC:N*.h:[1]} | ||||
crti_s.o: crti.S | crtbegin.o crtbeginS.o crtbeginT.o: | ||||
${CC} ${CFLAGS} ${ACFLAGS} -c ${.ALLSRC:M*.S} -o ${.TARGET} | |||||
crti.o: crti_s.o crtbrand.o | |||||
${LD} ${_LDFLAGS} -o ${.TARGET} -r ${.ALLSRC:M*.o} | ${LD} ${_LDFLAGS} -o ${.TARGET} -r ${.ALLSRC:M*.o} | ||||
crti.o: crti.S | |||||
${CC} ${CFLAGS} ${ACFLAGS} -c ${.ALLSRC:M*.S} -o ${.TARGET} | |||||
.endif | .endif | ||||
.include "../Makefile.inc" | .include "../Makefile.inc" |