Initial CAPS IPC structural encoding and decoding support. Note that the
[dragonfly.git] / lib / libcaps / Makefile
1 # $DragonFly: src/lib/libcaps/Makefile,v 1.5 2004/03/07 23:36:43 dillon Exp $
2 #
3 LIB=caps
4 SHLIB_MAJOR= 1
5 SHLIB_MINOR= 0
6 AINC= -I${.CURDIR}/${MACHINE_ARCH} -I${.OBJDIR}
7 CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/${MACHINE_ARCH}
8 CFLAGS+= -DSMP -D_UTHREAD
9 CFLAGS+= -Wall -g -DCAPS_DEBUG
10 INSTALL_PIC_ARCHIVE=    yes
11 .PATH:  ${.CURDIR}/${MACHINE_ARCH}  ${.CURDIR}/../../sys/kern
12
13 MISRCS= lwkt_msgport.c lwkt_thread.c lwkt_ipiq.c \
14         lwkt_token.c \
15         uthread.c init.c sysport.c slaballoc.c \
16         globaldata.c 
17
18 MISRCS+= caps_msgbuf.c caps_struct.c caps_pwent.c
19
20 SRCS+= ${.OBJDIR}/asdefs.h
21 CLEANFILES+=asdefs asdefs.o ${.CURDIR}/asdefs.h
22
23 ${.OBJDIR}/asdefs.h: asdefs
24         ${.OBJDIR}/${.ALLSRC} > ${.TARGET}
25
26 .include "${MACHINE_ARCH}/Makefile.inc"
27
28 ##################################################################
29 # For now this is a clone of what src/lib/libcr/Makefile.inc does.
30 # When this is liblwkt becomes part of libcr the rest of this file
31 # can be removed.
32 ##################################################################
33
34 # If there are no machine dependent sources, append all the
35 # machine-independent sources:
36 .if empty{MDSRCS}
37 SRCS+=          ${MISRCS}
38 .else
39 # Append machine-dependent sources, then append machine-independent sources
40 # for which there is no machine-dependent variant.
41 SRCS+=          ${MDSRCS}
42 .for _src in ${MISRCS}
43 .if ${MDSRCS:R:M${_src:R}} == ""
44 SRCS+=          ${_src}
45 .endif
46 .endfor
47 .endif
48
49 .include <bsd.lib.mk>