[libdispatch-changes] [26] trunk/src/Makefile.am
source_changes at macosforge.org
source_changes at macosforge.org
Mon Sep 14 11:31:35 PDT 2009
Revision: 26
http://trac.macosforge.org/projects/libdispatch/changeset/26
Author: robert at fledge.watson.org
Date: 2009-09-14 11:31:33 -0700 (Mon, 14 Sep 2009)
Log Message:
-----------
Expand build path for libdispatch to include XNU and libc private headers
on Mac OS X.
Build Mach IPC headers/etc with MIG on Mac OS X.
Modified Paths:
--------------
trunk/src/Makefile.am
Modified: trunk/src/Makefile.am
===================================================================
--- trunk/src/Makefile.am 2009-09-14 18:28:24 UTC (rev 25)
+++ trunk/src/Makefile.am 2009-09-14 18:31:33 UTC (rev 26)
@@ -16,6 +16,7 @@
time.c
libdispatch_la_CFLAGS=-Wall -Werror
+INCLUDES=@APPLE_LIBC_SOURCE_PATH@ @APPLE_XNU_SOURCE_PATH@
#
# This will need some refinement: gcc requires a minimum of -march=i486 on
@@ -34,6 +35,20 @@
libdispatch_la_LIBADD=-lpthread
endif
+if USE_MIG
+libdispatch_la_SOURCES+= \
+ protocolServer.c
+BUILT_SOURCES= \
+ protocol.h \
+ protocolServer.c \
+ protocolServer.h
+CLEANFILES=$BUILT_SOURCES
+
+protocol.h protocolServer.h protocolServer.c: protocol.defs
+ $(MIG) -user /dev/null -header protocol.h -server protocolServer.c \
+ -sheader protocolServer.h protocol.defs
+endif
+
#
# This hack is needed because the default include line from automake will add
# -I. to compiler commands. That leads to the local semaphore.h overriding
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/libdispatch-changes/attachments/20090914/9f460cd1/attachment.html>
More information about the libdispatch-changes
mailing list