1 # $DragonFly: src/lib/libcaps/Makefile,v 1.4 2004/01/18 12:39:58 dillon Exp $
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
13 MISRCS= lwkt_msgport.c lwkt_thread.c \
14 uthread.c init.c sysport.c slaballoc.c \
17 # caps_client.c caps_service.c caps_misc.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
31 ##################################################################
33 # If there are no machine dependent sources, append all the
34 # machine-independent sources:
38 # Append machine-dependent sources, then append machine-independent sources
39 # for which there is no machine-dependent variant.
41 .for _src in ${MISRCS}
42 .if ${MDSRCS:R:M${_src:R}} == ""