xref: /freebsd/lib/csu/amd64/Makefile (revision 380a989b3223d455375b4fae70fd0b9bdd43bafb)
1#
2#	$Id: Makefile,v 1.1.1.1 1998/03/07 20:27:10 jdp Exp $
3#
4
5SRCS=		crt1.c crtbegin.c crtend.c crti.S crtn.S
6OBJS=		${SRCS:N*.h:R:S/$/.o/g}
7OBJS+=		gcrt1.o
8SOBJS=		crtbegin.so crtend.so
9CFLAGS+=	-elf
10CFLAGS+=	-Wall -Wno-unused
11LDFLAGS+=	-elf
12NOMAN=		true
13NOPIC=		true
14NOPROFILE=	true
15INTERNALLIB=	true
16
17all: ${OBJS} ${SOBJS}
18
19gcrt1.o:	crt1.c
20	${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c
21
22realinstall:
23.for file in ${OBJS} ${SOBJS}
24	${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
25	    ${file} ${DESTDIR}${LIBDIR}/${file:S/.so$/S.o/}
26.endfor
27
28.include <bsd.lib.mk>
29