]> git.saurik.com Git - apple/libc.git/blobdiff - darwin/Makefile.inc
Libc-583.tar.gz
[apple/libc.git] / darwin / Makefile.inc
index a47cbda25a6ffefb5bf502ae54cae3d42198a481..a72b3be51a82dfd3eb74ae588c653781f9450b17 100644 (file)
@@ -1,5 +1,23 @@
 .PATH: ${.CURDIR}/darwin
 
 .PATH: ${.CURDIR}/darwin
 
-MISRCS += copyfile.c
-LOCALHDRS += ${.CURDIR}/darwin/copyfile.h
-CFLAGS-copyfile.c = -I${.CURDIR}/darwin
+.sinclude "${.CURDIR}/${MACHINE_ARCH}/darwin/Makefile.inc"
+
+DARWINMIGDEFS += dirhelper.defs
+DARWINMIGHDRS += ${DARWINMIGDEFS:.defs=.h}
+DARWINMIGSRCS += ${DARWINMIGDEFS:.defs=User.c}
+
+INSTHDRS += ${.CURDIR}/darwin/libproc.h
+
+LOCALHDRS += ${.CURDIR}/darwin/dirhelper.defs \
+       ${.CURDIR}/darwin/dirhelper_priv.h \
+       ${.CURDIR}/darwin/libproc.h
+MISRCS += ${DARWINMIGSRCS} _dirhelper.c libproc.c proc_listpidspath.c
+
+.ifndef LP64
+MISRCS += kvm.c MKGetTimeBaseInfo.c
+.endif
+
+# force building of the mig stuff before _dirhelper.c
+_dirhelper.${OBJSUFFIX}: dirhelperUser.c
+
+CFLAGS-proc_listpidspath.c += -I${.CURDIR}/darwin