]> git.saurik.com Git - apple/mdnsresponder.git/blobdiff - mDNSWindows/Java/makefile
mDNSResponder-212.1.tar.gz
[apple/mdnsresponder.git] / mDNSWindows / Java / makefile
index 8a115ee238c5812a6ac824500c5cee12231b505a..768b51f9102fe5c41ac0e2d40f9b560b391dedfe 100644 (file)
@@ -1,25 +1,31 @@
+# -*- tab-width: 4 -*-
+#
 # Copyright (c) 2002-2004 Apple Computer, Inc. All rights reserved.
 #
-# @APPLE_LICENSE_HEADER_START@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
 # 
-# 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.
+#     http://www.apache.org/licenses/LICENSE-2.0
 # 
-# 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
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
 # limitations under the License.
-# 
-# @APPLE_LICENSE_HEADER_END@
 #
 # $Log: makefile,v $
+# Revision 1.10  2009/03/30 20:22:43  herscher
+# <rdar://problem/5925472> Current Bonjour code does not compile on Windows
+# Update LIBDIR to work with new build directory structure
+# Create postbuild rules for new buildtrain
+#
+# Revision 1.9  2006/08/14 23:26:04  cheshire
+# Re-licensed mDNSResponder daemon source code under Apache License, Version 2.0
+#
+# Revision 1.8  2006/07/05 20:57:22  cheshire
+# <rdar://problem/3839132> Java needs to implement DNSServiceRegisterRecord equivalent
+#
 # Revision 1.7  2005/10/19 17:19:56  herscher
 # Change JDK to use JAVA_HOME environment variable
 #
@@ -88,13 +94,13 @@ CFLAGS_DEBUG = -Zi -DMDNS_DEBUGMSGS=2
 OBJDIR = objects\debug
 BUILDDIR = build\debug
 INSTALLDIR = root\"Program Files"\Bonjour
-LIBDIR = ..\DLL\Debug
+LIBDIR = ..\DLL\Win32\Debug
 !else
 CFLAGS_DEBUG = -Os -DMDNS_DEBUGMSGS=0 
 OBJDIR = objects\prod
 BUILDDIR = build\prod
 INSTALLDIR = root\"Program Files"\Bonjour
-LIBDIR = ..\DLL\Release
+LIBDIR = ..\DLL\Win32\Release
 !endif
 
 CFLAGS = $(CFLAGS_COMMON) $(CFLAGS_DEBUG)
@@ -112,7 +118,13 @@ setup:
        @if not exist $(BUILDDIR)       mkdir $(BUILDDIR)
 
 postbuild:
-       @if not exist root                                              mkdir root
+       @if not "%RC_XBS%"=="YES" GOTO CONT
+       @if not exist "$(DSTROOT)\WINDOWS\system32\Win32"       mkdir "$(DSTROOT)\WINDOWS\system32\Win32"
+       @if not exist "$(DSTROOT)\Program Files\Bonjour\Win32"  mkdir "$(DSTROOT)\Program Files\Bonjour\Win32"
+       @copy $(BUILDDIR)\jdns_sd.dll "$(DSTROOT)\WINDOWS\system32\Win32"
+       @copy $(BUILDDIR)\dns_sd.jar  "$(DSTROOT)\Program Files\Bonjour\Win32"
+       @:CONT
+       @if not exist root                                      mkdir root
        @if not exist root\"Program Files"      mkdir root\"Program Files"
        @if not exist $(INSTALLDIR)                     mkdir $(INSTALLDIR)
        copy $(BUILDDIR)\dns_sd.jar $(INSTALLDIR)
@@ -136,10 +148,12 @@ JARCONTENTS =     $(OBJDIR)\com\apple\dnssd\DNSSDService.class \
                                $(OBJDIR)\com\apple\dnssd\DNSRecord.class \
                                $(OBJDIR)\com\apple\dnssd\TXTRecord.class \
                                $(OBJDIR)\com\apple\dnssd\DNSSDRegistration.class \
+                               $(OBJDIR)\com\apple\dnssd\DNSSDRecordRegistrar.class \
                                $(OBJDIR)\com\apple\dnssd\BaseListener.class \
                                $(OBJDIR)\com\apple\dnssd\BrowseListener.class \
                                $(OBJDIR)\com\apple\dnssd\ResolveListener.class \
                                $(OBJDIR)\com\apple\dnssd\RegisterListener.class \
+                               $(OBJDIR)\com\apple\dnssd\RegisterRecordListener.class \
                                $(OBJDIR)\com\apple\dnssd\QueryListener.class \
                                $(OBJDIR)\com\apple\dnssd\DomainListener.class \
                                $(OBJDIR)\com\apple\dnssd\DNSSD.class