]> git.saurik.com Git - apple/libresolv.git/commitdiff
libresolv-41.tar.gz mac-os-x-1064 mac-os-x-1065 mac-os-x-1066 mac-os-x-1067 mac-os-x-1068 v41
authorApple <opensource@apple.com>
Tue, 19 Jan 2010 22:53:53 +0000 (22:53 +0000)
committerApple <opensource@apple.com>
Tue, 19 Jan 2010 22:53:53 +0000 (22:53 +0000)
Makefile

index 768c5b7f3d5a2ccb9d514771ca6441911fb8e96c..0c4194244ba741b96d5b27423674e50a74ae5de2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -37,6 +37,8 @@ PLUGIN_DEST = $(DSTROOT)/$(DESTDIR)usr/lib/info
 
 build:: dns.so
 
+_installhdrs:: _symlink_hdrs
+
 dns.so: dns_plugin.c
        $(CC) -c $(CFLAGS) dns_plugin.c
        $(CC) $(PLUGIN_CC_Flags) $(LDFLAGS) $(PLUGIN_LD_Flags) -o $(SYMROOT)/dns.so dns_plugin.o
@@ -45,6 +47,10 @@ dns.so: dns_plugin.c
        $(INSTALL_LIBRARY) $(SYMROOT)/dns.so $(PLUGIN_DEST)
        $(STRIP) -S $(PLUGIN_DEST)/dns.so
 
+_symlink_hdrs:
+       $(INSTALL_DIRECTORY) $(DSTROOT)/usr/include/arpa
+       $(LN) -sf ../nameser.h $(DSTROOT)/usr/include/arpa
+
 after_install:
        $(INSTALL_DIRECTORY) $(DSTROOT)/usr/include/arpa
        $(LN) -sf ../nameser.h $(DSTROOT)/usr/include/arpa