Cross Reference: Makefile
xref: /src/sys/lib/libkern/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/sys/lib/libkern/
Makefile revision 1.12
1#	$Id: Makefile,v 1.12 1994/06/30 04:26:07 deraadt Exp $
2
3LIB=	kern
4NOPIC=
5OBJMACHINE=
6CFLAGS+= -I${.CURDIR} -Imachine/.. -I. -I${.CURDIR}/../..
7
8machine-links:
9	-rm -f machine && \
10	    ln -s ${.CURDIR}/../../arch/${MACHINE}/include machine
11	-rm -f ${MACHINE_ARCH} && \
12	    ln -s ${.CURDIR}/../../arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
13
14all:	machine-links
15
16.if exists (${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc)
17.PATH:	${.CURDIR}/arch/${MACHINE_ARCH}
18.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
19.endif
20
21LIBC=	${.CURDIR}/../../../lib/libc
22.PATH: ${LIBC}/string ${LIBC}/arch/${MACHINE_ARCH}/string
23.PATH: ${LIBC}/net ${LIBC}/arch/${MACHINE_ARCH}/net
24.PATH: ${LIBC}/gen ${LIBC}/arch/${MACHINE_ARCH}/gen
25.PATH: ${LIBC}/stdlib ${LIBC}/arch/${MACHINE_ARCH}/stdlib
26.PATH: ${LIBC}/sys ${LIBC}/arch/${MACHINE_ARCH}/sys
27AINC+=	-I${LIBC}/arch/${MACHINE_ARCH}
28
29# Quad support
30SRCS+=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
31	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
32	subdi3.c  ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
33
34# Other stuff
35SRCS+=	mcount.c
36
37.PATH: ${LIBC}/arch/${MACHINE_ARCH}/quad ${LIBC}/quad
38
39install:
40
41# mcount cannot be compiled with profiling
42mcount.po: mcount.o
43	cp mcount.o mcount.po
44
45.include <bsd.lib.mk>
46

Indexes created Thu Dec 04 15:09:31 GMT 2025