1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
2001-10-27 08:30:36 +00:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../common
|
1998-03-07 20:27:11 +00:00
|
|
|
|
2000-10-28 21:26:48 +00:00
|
|
|
SRCS= crt1.c crti.S crtn.S
|
1998-03-07 20:27:11 +00:00
|
|
|
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
|
2009-12-02 16:34:20 +00:00
|
|
|
OBJS+= Scrt1.o gcrt1.o
|
2003-06-30 12:53:39 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../common \
|
2002-03-29 22:43:43 +00:00
|
|
|
-I${.CURDIR}/../../libc/include
|
2008-08-22 09:23:39 +00:00
|
|
|
CFLAGS+= -fno-omit-frame-pointer
|
2000-05-20 17:47:29 +00:00
|
|
|
|
2002-05-13 11:51:11 +00:00
|
|
|
all: ${OBJS}
|
1998-03-07 20:27:11 +00:00
|
|
|
|
2002-05-13 15:28:00 +00:00
|
|
|
CLEANFILES= ${OBJS}
|
|
|
|
|
2001-10-27 08:30:36 +00:00
|
|
|
gcrt1.o: crt1.c
|
1998-09-07 23:32:00 +00:00
|
|
|
${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c
|
|
|
|
|
2009-12-02 16:34:20 +00:00
|
|
|
Scrt1.o: crt1.c
|
|
|
|
${CC} ${CFLAGS} -fPIC -DPIC -c -o Scrt1.o ${.CURDIR}/crt1.c
|
|
|
|
|
1998-03-07 20:27:11 +00:00
|
|
|
realinstall:
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
2002-05-13 11:51:11 +00:00
|
|
|
${OBJS} ${DESTDIR}${LIBDIR}
|
1998-03-07 20:27:11 +00:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|