mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
b0032ab5f8
in crt1.o. On other architectures crtbrand.c is included from crt1.c, but that's not a C source code file on ia64. Instead it is compiled separately and included in crt1.o using incremental linking. Tested by: dim (previous version) Approved by: kib (mentor)
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../common
|
|
|
|
SRCS= crti.S crtn.S
|
|
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
|
|
OBJS+= crt1.o gcrt1.o Scrt1.o
|
|
|
|
all: ${OBJS}
|
|
|
|
CLEANFILES= ${OBJS}
|
|
CLEANFILES+= crt1_.o gcrt1_.o Scrt1_.o
|
|
CLEANFILES+= crtbrand.o gcrtbrand.o Scrtbrand.o
|
|
|
|
crt1_.o: crt1.S
|
|
${CC} ${CFLAGS} -c -o ${.TARGET} ${.ALLSRC}
|
|
|
|
crtbrand.o: crtbrand.c
|
|
${CC} ${CFLAGS} -c -o ${.TARGET} ${.ALLSRC}
|
|
|
|
crt1.o: crt1_.o crtbrand.o
|
|
${LD} ${LDFLAGS} -r -o ${.TARGET} crt1_.o crtbrand.o
|
|
|
|
gcrt1_.o: crt1.S
|
|
${CC} ${CFLAGS} -DGCRT -c -o ${.TARGET} ${.ALLSRC}
|
|
|
|
gcrtbrand.o: crtbrand.c
|
|
${CC} ${CFLAGS} -DGCRT -c -o ${.TARGET} ${.ALLSRC}
|
|
|
|
gcrt1.o: gcrt1_.o gcrtbrand.o
|
|
${LD} ${LDFLAGS} -r -o ${.TARGET} ${.ALLSRC}
|
|
|
|
Scrt1_.o: crt1.S
|
|
${CC} ${CFLAGS} -fPIC -DPIC -c -o ${.TARGET} ${.ALLSRC}
|
|
|
|
Scrtbrand.o: crtbrand.c
|
|
${CC} ${CFLAGS} -fPIC -DPIC -c -o ${.TARGET} ${.ALLSRC}
|
|
|
|
Scrt1.o: Scrt1_.o Scrtbrand.o
|
|
${LD} ${LDFLAGS} -r -o ${.TARGET} ${.ALLSRC}
|
|
|
|
realinstall:
|
|
${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
|
${OBJS} ${DESTDIR}${LIBDIR}
|
|
|
|
.include <bsd.lib.mk>
|