Changeset View
Changeset View
Standalone View
Standalone View
lib/csu/mips/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
.PATH: ${.CURDIR:H}/common | .PATH: ${.CURDIR:H}/common | ||||
SRCS= crt1.c crti.S crtn.S | SRCS= 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+= Scrt1.o crt1.o gcrt1.o | ||||
CFLAGS+= -I${.CURDIR:H}/common \ | CFLAGS+= -I${.CURDIR:H}/common \ | ||||
-I${SRCTOP}/lib/libc/include | -I${SRCTOP}/lib/libc/include | ||||
CFLAGS+= -DCRT_IRELOC_SUPPRESS | CFLAGS+= -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} crt1_c.o gcrt1_c.o Scrt1_c.o | ||||
CLEANFILES+= crt1.s gcrt1.s Scrt1.s | CLEANFILES+= crtbrand.o ignore_init_note.o | ||||
# See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not | gcrt1_c.o: crt1_c.c | ||||
# directly compiled to .o files. | ${CC} ${CFLAGS} -DGCRT -c -o ${.TARGET} ${.CURDIR}/crt1_c.c | ||||
crt1.s: crt1.c | gcrt1.o: gcrt1_c.o crtbrand.o ignore_init_note.o | ||||
${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c | ${LD} ${_LDFLAGS} -o gcrt1.o -r crtbrand.o ignore_init_note.o gcrt1_c.o | ||||
sed ${SED_FIX_NOTE} ${.TARGET} | |||||
crt1.o: crt1.s | crt1.o: crt1_c.o crtbrand.o ignore_init_note.o | ||||
${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} crt1.s | ${LD} ${_LDFLAGS} -o crt1.o -r crtbrand.o ignore_init_note.o crt1_c.o | ||||
gcrt1.s: crt1.c | Scrt1_c.o: crt1_c.c | ||||
${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c | ${CC} ${CFLAGS} -fPIC -DPIC -c -o ${.TARGET} ${.CURDIR}/crt1_c.c | ||||
sed ${SED_FIX_NOTE} ${.TARGET} | |||||
gcrt1.o: gcrt1.s | Scrt1.o: Scrt1_c.o crtbrand.o ignore_init_note.o | ||||
${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} gcrt1.s | ${LD} ${_LDFLAGS} -o Scrt1.o -r crtbrand.o ignore_init_note.o Scrt1_c.o | ||||
Scrt1.s: crt1.c | |||||
${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c | |||||
sed ${SED_FIX_NOTE} ${.TARGET} | |||||
Scrt1.o: Scrt1.s | |||||
${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} Scrt1.s | |||||
.include <bsd.lib.mk> | .include <bsd.lib.mk> |