X-Git-Url: https://git.saurik.com/apple/mdnsresponder.git/blobdiff_plain/7f0064bd55e3fa98568d2c359429ff8a38b23a6c..f5e6e86cb0d7e0c7608c30d93ecb200173f29055:/mDNSWindows/Java/makefile diff --git a/mDNSWindows/Java/makefile b/mDNSWindows/Java/makefile index d787410..b590e30 100644 --- a/mDNSWindows/Java/makefile +++ b/mDNSWindows/Java/makefile @@ -20,6 +20,15 @@ # @APPLE_LICENSE_HEADER_END@ # # $Log: makefile,v $ +# Revision 1.6 2005/02/10 22:35:36 cheshire +# Update name +# +# Revision 1.5 2005/02/08 23:47:51 shersche +# Build into proper directories for installer +# +# Revision 1.4 2004/12/16 22:38:00 shersche +# Compile DNSSDException.java first to avoid build errors, copy output to appropriate "buildroot" folder +# # Revision 1.3 2004/11/23 08:13:07 shersche # Link to the iphlpapi.lib for GetAdaptersInfo # @@ -75,11 +84,13 @@ DEBUG=0 CFLAGS_DEBUG = -Zi -DMDNS_DEBUGMSGS=2 OBJDIR = objects\debug BUILDDIR = build\debug +INSTALLDIR = root\"Program Files"\Bonjour LIBDIR = ..\DLL\Debug !else CFLAGS_DEBUG = -Os -DMDNS_DEBUGMSGS=0 OBJDIR = objects\prod BUILDDIR = build\prod +INSTALLDIR = root\"Program Files"\Bonjour LIBDIR = ..\DLL\Release !endif @@ -88,7 +99,7 @@ JAVACFLAGS = $(CFLAGS) $(JAVACFLAGS_OS) ############################################################################# -all: setup Java +all: setup Java postbuild # 'setup' sets up the build directory structure the way we want setup: @@ -97,6 +108,13 @@ setup: @if not exist $(OBJDIR) mkdir $(OBJDIR) @if not exist $(BUILDDIR) mkdir $(BUILDDIR) +postbuild: + @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) + copy $(BUILDDIR)\jdns_sd.dll $(INSTALLDIR) + # clean removes targets and objects clean: @if exist $(OBJDIR) $(RMDIR) $(OBJDIR) @@ -106,13 +124,13 @@ clean: # The following targets build Java wrappers for the dns-sd.h API. -Java: setup $(BUILDDIR)\dns_sd.jar $(BUILDDIR)\jdns_sd.dll +Java: setup $(BUILDDIR)\dns_sd.jar $(BUILDDIR)\jdns_sd.dll postbuild @echo "Java wrappers done" JAVASRC = $(SHAREDDIR)\Java JARCONTENTS = $(OBJDIR)\com\apple\dnssd\DNSSDService.class \ - $(OBJDIR)\com\apple\dnssd\DNSRecord.class \ $(OBJDIR)\com\apple\dnssd\DNSSDException.class \ + $(OBJDIR)\com\apple\dnssd\DNSRecord.class \ $(OBJDIR)\com\apple\dnssd\TXTRecord.class \ $(OBJDIR)\com\apple\dnssd\DNSSDRegistration.class \ $(OBJDIR)\com\apple\dnssd\BaseListener.class \