mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
bb63c9d3b4
"common" sister directory.
30 lines
577 B
Makefile
30 lines
577 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
SRCS= crt1.c crtbegin.c crtend.c crti.S crtn.S
|
|
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
|
|
OBJS+= gcrt1.o
|
|
SOBJS= crtbegin.So crtend.So
|
|
CFLAGS+= -elf -Wall -fkeep-inline-functions
|
|
LDFLAGS+= -elf
|
|
NOMAN= true
|
|
NOPIC= true
|
|
NOPROFILE= true
|
|
INTERNALLIB= true
|
|
|
|
.PATH: ${.CURDIR}/../common
|
|
|
|
all: ${OBJS} ${SOBJS}
|
|
|
|
gcrt1.o: crt1.c
|
|
${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c
|
|
|
|
realinstall:
|
|
.for file in ${OBJS} ${SOBJS}
|
|
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
|
${file} ${DESTDIR}${LIBDIR}/${file:S/.So$/S.o/}
|
|
.endfor
|
|
|
|
.include <bsd.lib.mk>
|