1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
2001-10-27 08:30:36 +00:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../common
|
1998-03-10 07:04:18 +00:00
|
|
|
|
2000-10-30 05:21:08 +00:00
|
|
|
SRCS= crt1.c crti.S crtn.S
|
|
|
|
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
|
1999-07-16 06:59:27 +00:00
|
|
|
OBJS+= gcrt1.o
|
2000-10-28 21:26:48 +00:00
|
|
|
CFLAGS+= -Wall -Wno-unused \
|
2002-03-29 22:43:43 +00:00
|
|
|
-I${.CURDIR}/../common \
|
|
|
|
-I${.CURDIR}/../../libc/include
|
1998-03-11 20:41:55 +00:00
|
|
|
|
1998-03-10 07:04:18 +00:00
|
|
|
all: ${OBJS} ${SOBJS}
|
|
|
|
|
2001-10-27 08:30:36 +00:00
|
|
|
gcrt1.o: crt1.c
|
2000-04-19 23:45:43 +00:00
|
|
|
${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.ALLSRC}
|
1999-07-16 06:59:27 +00:00
|
|
|
|
1998-03-10 07:04:18 +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-10 07:04:18 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|