1998-03-07 20:27:11 +00:00
|
|
|
#
|
1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1998-03-07 20:27:11 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
SRCS= crt1.c crtbegin.c crtend.c crti.S crtn.S
|
|
|
|
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
|
1998-09-07 23:32:00 +00:00
|
|
|
OBJS+= gcrt1.o
|
1999-01-09 21:51:00 +00:00
|
|
|
SOBJS= crtbegin.So crtend.So
|
1999-03-15 21:56:54 +00:00
|
|
|
CFLAGS+= -elf -Wall -fkeep-inline-functions
|
1998-03-07 20:27:11 +00:00
|
|
|
LDFLAGS+= -elf
|
|
|
|
NOMAN= true
|
|
|
|
NOPIC= true
|
|
|
|
NOPROFILE= true
|
|
|
|
INTERNALLIB= true
|
|
|
|
|
2000-05-20 17:47:29 +00:00
|
|
|
.PATH: ${.CURDIR}/../common
|
|
|
|
|
1998-03-07 20:27:11 +00:00
|
|
|
all: ${OBJS} ${SOBJS}
|
|
|
|
|
1998-09-07 23:32:00 +00:00
|
|
|
gcrt1.o: crt1.c
|
|
|
|
${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c
|
|
|
|
|
1998-03-07 20:27:11 +00:00
|
|
|
realinstall:
|
|
|
|
.for file in ${OBJS} ${SOBJS}
|
|
|
|
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
1999-01-09 21:51:00 +00:00
|
|
|
${file} ${DESTDIR}${LIBDIR}/${file:S/.So$/S.o/}
|
1998-03-07 20:27:11 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|