Modified: trunk/src/Makefile.am (25 => 26)
--- 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