More minor IPI work.
[dragonfly/vkernel-mp.git] / lib / libcaps / Makefile
blob097b2f4b675b0646e5c83b21e8b2229991a7bc11
1 # $DragonFly: src/lib/libcaps/Makefile,v 1.7 2006/01/28 19:07:43 dillon Exp $
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
12 #MISRCS= lwkt_msgport.c lwkt_thread.c lwkt_ipiq.c \
13 # lwkt_token.c \
14 # uthread.c init.c sysport.c slaballoc.c \
15 # globaldata.c
17 MISRCS= caps_msgbuf.c caps_struct.c caps_pwent.c
19 SRCS+= ${.OBJDIR}/asdefs.h
20 CLEANFILES+=asdefs asdefs.o ${.CURDIR}/asdefs.h
22 ${.OBJDIR}/asdefs.h: asdefs
23 ${.OBJDIR}/${.ALLSRC} > ${.TARGET}
25 .include "${MACHINE_ARCH}/Makefile.inc"
27 ##################################################################
28 # For now this is a clone of what src/lib/libcr/Makefile.inc does.
29 # When this is liblwkt becomes part of libcr the rest of this file
30 # can be removed.
31 ##################################################################
33 # If there are no machine dependent sources, append all the
34 # machine-independent sources:
35 .if empty{MDSRCS}
36 SRCS+= ${MISRCS}
37 .else
38 # Append machine-dependent sources, then append machine-independent sources
39 # for which there is no machine-dependent variant.
40 SRCS+= ${MDSRCS}
41 .for _src in ${MISRCS}
42 .if ${MDSRCS:R:M${_src:R}} == ""
43 SRCS+= ${_src}
44 .endif
45 .endfor
46 .endif
48 .include <bsd.lib.mk>