[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / sys / lib / libkern

Annotation of sys/lib/libkern/Makefile, Revision 1.1.1.1

1.1       nbrk        1: #      $OpenBSD: Makefile,v 1.19 2007/05/04 22:14:37 deraadt Exp $
                      2:
                      3: LIB=   kern
                      4: NOPIC=
                      5:
                      6: MACHINE=       ${XMACHINE}
                      7: MACHINE_ARCH=  ${XMACHINE_ARCH}
                      8:
                      9: M=     ${.CURDIR}/arch/${MACHINE_ARCH}
                     10:
                     11: CPPFLAGS=      -I$M ${KERNCPPFLAGS}
                     12:
                     13: .if exists ($M/Makefile.inc)
                     14: .PATH: $M
                     15: .include "$M/Makefile.inc"
                     16: .endif
                     17:
                     18: .if (${MACHINE_ARCH} != "alpha" && ${MACHINE} != "sgi" && \
                     19:     ${MACHINE_ARCH} != "sparc64") && ${MACHINE} != "amd64" && \
                     20:     ${MACHINE} != "hppa64"
                     21: # Quad support
                     22: SRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
                     23:        lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
                     24:        subdi3.c  ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
                     25: .endif
                     26:
                     27: # Other stuff
                     28: SRCS+= getsn.c srandom.c strchr.c
                     29:
                     30: # Files to clean up
                     31: CLEANFILES+= lib${LIB}.o lib${LIB}.po
                     32:
                     33: # mcount cannot be compiled with profiling
                     34: mcount.po: mcount.o
                     35:        cp mcount.o mcount.po
                     36:
                     37: install:
                     38:
                     39: .include <bsd.lib.mk>
                     40:
                     41: lib${LIB}.o:: ${OBJS}
                     42:        @echo building standard ${LIB} library
                     43:        @rm -f lib${LIB}.o
                     44:        @${LD} -r -o lib${LIB}.o `${LORDER} ${OBJS} | tsort`
                     45:
                     46: POBJS+=        ${OBJS:.o=.po} mcount.po
                     47: lib${LIB}.po:: ${POBJS}
                     48:        @echo building profiled ${LIB} library
                     49:        @rm -f lib${LIB}.po
                     50:        @${LD} -r -o lib${LIB}.po `${LORDER} ${POBJS} | tsort`

CVSweb