-# Copyright (c) 2002-2003 Apple Computer, Inc. All rights reserved.
-#
-# @APPLE_LICENSE_HEADER_START@
-#
-# This file contains Original Code and/or Modifications of Original Code
-# as defined in and that are subject to the Apple Public Source License
-# Version 2.0 (the 'License'). You may not use this file except in
-# compliance with the License. Please obtain a copy of the License at
-# http://www.opensource.apple.com/apsl/ and read it before using this
-# file.
-#
-# The Original Code and all software distributed under the License are
-# distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
-# EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
-# INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
-# Please see the License for the specific language governing rights and
-# limitations under the License.
-#
-# @APPLE_LICENSE_HEADER_END@
-#
-# $Log: Makefile,v $
-# Revision 1.34 2004/05/25 18:29:33 cheshire
-# Move DNSServiceConstructFullName() from dnssd_clientstub.c to dnssd_clientlib.c,
-# so that it's also accessible to dnssd_clientshim.c (single address space) clients.
-#
-# Revision 1.33 2004/04/30 16:46:32 rpantos
-# Add support for building Java libraries.
-#
-# Revision 1.32 2004/04/14 23:09:29 ksekar
-# Support for TSIG signed dynamic updates.
-#
-# Revision 1.31 2004/03/15 19:07:06 cheshire
-# Fix error message
-#
-# Revision 1.30 2004/03/11 18:58:29 rpantos
-# Fix Kill /etc/rc scripts so they run at halt & reboot.
-#
-# Revision 1.29 2004/03/04 23:35:41 cheshire
-# Instead of using a dummy target to generate an error message, use "$(error text...)"
-#
-# Revision 1.28 2004/03/04 23:33:42 cheshire
-# Fixes from Alfred Perlstein for FreeBSD's benefit
-#
-# Revision 1.27 2004/02/11 21:00:21 cheshire
-# Update URL for GNU Make manual page
-#
-# Revision 1.26 2004/02/05 21:28:30 cheshire
-# Fixes so that "sudo make install" works on *BSD
-#
-# Revision 1.25 2004/02/05 20:00:22 cheshire
-# Define mdnsd's PID file to be /var/run/mdnsd.pid on Posix builds
-#
-# Revision 1.24 2004/02/05 01:00:01 rpantos
-# Fix some issues that turned up when building for FreeBSD.
-#
-# Revision 1.23 2004/02/04 01:50:54 cheshire
-# Make InstalledStartup conditional, so it automatically installs into
-# either /etc/init.d/ or /etc/rc.d/init.d/ as appropriate
-#
-# Revision 1.22 2004/01/20 01:41:21 rpantos
-# Define USES_NETLINK for Linux builds.
-#
-# Revision 1.21 2003/12/17 00:51:22 cheshire
-# Changed mDNSNetMonitor and mDNSIdentify to link the object files
-# instead of #including the "DNSCommon.c" "uDNS.c" and source files
-#
-# Revision 1.20 2003/12/13 03:05:28 ksekar
-# Bug #: <rdar://problem/3192548>: DynDNS: Unicast query of service records
-#
-# Revision 1.19 2003/12/11 19:42:13 cheshire
-# Change name "mDNSResponderd" to "mdnsd" for consistency with standard Linux (Unix) naming conventions
-#
-# Revision 1.18 2003/12/11 19:38:34 cheshire
-# Add APSL
-#
-# Revision 1.17 2003/12/11 03:16:49 rpantos
-# One more change for OS X build: make install work a little better.
-#
-# Revision 1.16 2003/12/11 03:03:51 rpantos
-# Clean up mDNSPosix so that it builds on OS X again.
-#
-# Revision 1.15 2003/12/08 20:47:02 rpantos
-# Add support for mDNSResponder on Linux.
-#
-# Revision 1.14 2003/11/14 20:59:09 cheshire
-# Clients can't use AssignDomainName macro because mDNSPlatformMemCopy is defined in mDNSPlatformFunctions.h.
-# Best solution is just to combine mDNSClientAPI.h and mDNSPlatformFunctions.h into a single file.
-#
-# Revision 1.13 2003/08/06 18:20:51 cheshire
-# Makefile cleanup
-#
-# Revision 1.12 2003/08/01 02:20:02 cheshire
-# Add mDNSIdentify tool, used to discover what version of mDNSResponder a particular host is running
-#
-# Revision 1.11 2003/07/14 18:11:54 cheshire
-# Fix stricter compiler warnings
-#
-# Revision 1.10 2003/06/18 05:47:41 cheshire
-# Enable stricter warnings on Jaguar and Panther builds
-#
-# Revision 1.9 2003/06/04 18:34:45 ksekar
-# Bug #: <rdar://problem/3218120>: mDNSPosix does not build on Panther that has socklen_t
-# Changed build targets "osx10.2" and "osx10.3" to "jaguar" and "panther".
-#
-# Revision 1.8 2003/06/04 00:23:12 ksekar
-# Bug #: <rdar://problem/3218120>: mDNSPosix does not build on Panther that has socklen_t
-# Created separate target OS's for 10.2 and 10.3.
-#
-# Revision 1.7 2003/04/16 02:11:37 cheshire
-# Remove unnecessary $(CFLAGS) from linking rules
-#
-# Revision 1.6 2003/04/04 01:37:14 cheshire
-# Added NetMonitor.c
-#
-
-# This Makefile builds an mDNSResponder daemon and a libmdns.so shared library
+# -*- tab-width: 4 -*-
+#
+# Copyright (c) 2002-2004, Apple Computer, Inc. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+# 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of its
+# contributors may be used to endorse or promote products derived from this
+# software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# IMPORTANT NOTE: This is a Makefile for *GNU make*
+# On some systems, a different program may be the default "make" command.
+# If "make os=xxx" gives lots of errors like "Missing dependency operator",
+# then try typing "gmake os=xxx" instead.
+#
+# This Makefile builds an mDNSResponder daemon and a libdns_sd.so shared library