Remove commented out references to lwkt_* source files as lwkt is no more
[dragonfly.git] / lib / libcaps / Makefile
1 # $DragonFly: src/lib/libcaps/Makefile,v 1.8 2008/05/22 20:01:55 nth Exp $
2 #
3 LIB=caps
4 SHLIB_MAJOR= 2
5 AINC= -I${.CURDIR}/${MACHINE_ARCH} -I${.OBJDIR}
6 CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/${MACHINE_ARCH}
7 CFLAGS+= -DSMP -D_UTHREAD
8 CFLAGS+= -Wall -g -DCAPS_DEBUG
9 INSTALL_PIC_ARCHIVE=    yes
10 .PATH:  ${.CURDIR}/${MACHINE_ARCH}  ${.CURDIR}/../../sys/kern
11
12 #MISRCS=        uthread.c init.c sysport.c slaballoc.c globaldata.c 
13
14 MISRCS= caps_msgbuf.c caps_struct.c caps_pwent.c
15
16 SRCS+= ${.OBJDIR}/asdefs.h
17 CLEANFILES+=asdefs asdefs.o ${.CURDIR}/asdefs.h
18
19 ${.OBJDIR}/asdefs.h: asdefs
20         ${.OBJDIR}/${.ALLSRC} > ${.TARGET}
21
22 .include "${MACHINE_ARCH}/Makefile.inc"
23
24 ##################################################################
25 # For now this is a clone of what src/lib/libcr/Makefile.inc does.
26 # When this is liblwkt becomes part of libcr the rest of this file
27 # can be removed.
28 ##################################################################
29
30 # If there are no machine dependent sources, append all the
31 # machine-independent sources:
32 .if empty{MDSRCS}
33 SRCS+=          ${MISRCS}
34 .else
35 # Append machine-dependent sources, then append machine-independent sources
36 # for which there is no machine-dependent variant.
37 SRCS+=          ${MDSRCS}
38 .for _src in ${MISRCS}
39 .if ${MDSRCS:R:M${_src:R}} == ""
40 SRCS+=          ${_src}
41 .endif
42 .endfor
43 .endif
44
45 .include <bsd.lib.mk>