Home | History | Annotate | Line # | Download | only in libkern
Makefile revision 1.46.2.3
      1  1.46.2.3       chs #	$NetBSD: Makefile,v 1.46.2.3 1999/04/09 04:31:59 chs Exp $
      2       1.1       cgd 
      3       1.1       cgd LIB=	kern
      4       1.1       cgd NOPIC=
      5       1.9   deraadt 
      6      1.29   mycroft M=	${.CURDIR}/arch/${MACHINE_ARCH}
      7      1.20  christos 
      8      1.32       cgd CPPFLAGS=	-I$M ${KERNCPPFLAGS} ${KERNMISCCPPFLAGS}
      9      1.29   mycroft 
     10      1.29   mycroft .if exists ($M/Makefile.inc)
     11      1.29   mycroft .PATH:	$M
     12      1.29   mycroft .include "$M/Makefile.inc"
     13       1.1       cgd .endif
     14       1.5       cgd 
     15      1.19       cgd .if (${MACHINE_ARCH} != "alpha")
     16       1.5       cgd # Quad support
     17       1.5       cgd SRCS+=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
     18       1.5       cgd 	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
     19       1.5       cgd 	subdi3.c  ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
     20      1.19       cgd .endif
     21       1.8       cgd 
     22       1.8       cgd # Other stuff
     23      1.42  christos SRCS+=	md5c.c sha1.c pmatch.c
     24      1.27    scottr 
     25      1.27    scottr # Files to clean up
     26      1.27    scottr CLEANFILES+= lib${LIB}.o lib${LIB}.po
     27       1.5       cgd 
     28      1.38       cgd #
     29      1.38       cgd # Special rules for certain objects
     30      1.38       cgd #
     31      1.38       cgd 
     32      1.11       cgd # mcount cannot be compiled with profiling
     33      1.11       cgd mcount.po: mcount.o
     34      1.11       cgd 	cp mcount.o mcount.po
     35      1.40   mycroft 
     36      1.46     perry # XXX these stub builds should be cleaned up even further.
     37      1.46     perry 
     38      1.46     perry # if no machine specific memcpy(3), build one out of bcopy(3) based stub.
     39      1.40   mycroft .if empty(SRCS:Mmemcpy.S)
     40      1.46     perry SRCS+=	memcpy.c
     41      1.44     perry .endif
     42      1.44     perry 
     43      1.46     perry # if no machine specific memmove(3), build one out of bcopy(3) based stub.
     44      1.44     perry .if empty(SRCS:Mmemmove.S)
     45      1.46     perry SRCS+=	memmove.c
     46      1.40   mycroft .endif
     47      1.38       cgd 
     48      1.46     perry # if no machine specific strchr(3), build one out of index(3) based stub.
     49      1.38       cgd .if empty(SRCS:Mstrchr.S)
     50      1.46     perry SRCS+=	strchr.c
     51      1.38       cgd .endif
     52      1.38       cgd 
     53      1.46     perry # if no machine specific strrchr(3), build one out of rindex(3) based stub.
     54      1.38       cgd .if empty(SRCS:Mstrrchr.S)
     55      1.46     perry SRCS+=	strrchr.c
     56      1.38       cgd .endif
     57      1.36       cjs 
     58  1.46.2.2       chs POBJS+=	mcount.po
     59      1.43  drochner 
     60      1.36       cjs # only needed during build
     61      1.36       cjs libinstall::
     62       1.1       cgd 
     63       1.1       cgd .include <bsd.lib.mk>
     64      1.23   mycroft 
     65      1.23   mycroft lib${LIB}.o:: ${OBJS}
     66      1.23   mycroft 	@echo building standard ${LIB} library
     67      1.23   mycroft 	@rm -f lib${LIB}.o
     68  1.46.2.3       chs 	@${LD} -r -o lib${LIB}.o `NM=${NM} ${LORDER} ${OBJS} | ${TSORT}`
     69      1.23   mycroft 
     70      1.23   mycroft lib${LIB}.po:: ${POBJS}
     71      1.23   mycroft 	@echo building profiled ${LIB} library
     72      1.23   mycroft 	@rm -f lib${LIB}.po
     73  1.46.2.3       chs 	@${LD} -r -o lib${LIB}.po `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}`
     74