###############################################################################
#  NeXT Makefile.preamble Template
#  Copyright 1993, NeXT Computer, Inc.
#
#  This Makefile is used for configuring the standard app makefiles associated
#  with ProjectBuilder.  
#  
#  Use this template to set attributes for a project, sub-project, bundle, or
#  palette.  Each node in the project's tree of sub-projects and bundles 
#  should have it's own Makefile.preamble and Makefile.postamble.
#
###############################################################################
## Configure the flags passed to $(CC) here.  These flags will also be 
## inherited by all nested sub-projects and bundles.  Put your -I, -D, -U, and
## -L flags here.  To change the default flags that get passed to ${CC} 
## (e.g. change -O to -O2), see Makefile.postamble.

# Flags passed to compiler (in addition to -g, -O, etc)
OTHER_CFLAGS = 
# Flags passed to ld (in addition to -ObjC, etc.)
OTHER_LDFLAGS =	

## Configure what is linked in at each level here.  Libraries are only used in
## the final 'app' linking step.  Final 'app' linking is only done via the
## 'app', 'debug', and 'profile' targets when they are invoked for
## the top-level app.

# Additional relocatables to be linked in at this level
OTHER_OFILES = 
# Additional libs to link apps against ('app' target)
OTHER_LIBS = 
# Additional libs to link apps against ('debug' target)
OTHER_DEBUG_LIBS = 
# Additional libs to link apps against ('profile' target)
OTHER_PROF_LIBS = 

# More 'app' libraries when $(JAPANESE) = "YES"
OTHER_JAPANESE_LIBS = 
# More 'debug' libraries when $(JAPANESE) = "YES"
OTHER_JAPANESE_DEBUG_LIBS = 
# More 'profile' libs when $(JAPANESE) = "YES"
OTHER_JAPANESE_PROF_LIBS = 

## Configure how things get built here.  Additional dependencies, sourcefiles, 
## derived files, and build order should be specified here.

# Other dependencies of this project
OTHER_PRODUCT_DEPENDS =	
# Built *before* building subprojects/bundles
OTHER_INITIAL_TARGETS = 
# Other source files maintained by .pre/postamble
OTHER_SOURCEFILES = 
# Additional files to be removed by `make clean' 
OTHER_GARBAGE = 
# Precompiled headers to be built before any compilation occurs (e.g., draw.p)
PRECOMPS = 

# Targets to be built before subprojects & bundles
OTHER_INITIAL_TARGETS =	

# A virtual root directory (other than /) to be prepended to the $(INSTALLDIR) 
# passed from ProjectBuilder.
DSTROOT = 


## Add more obscure source files here to cause them to be automatically 
## processed by the appropriate tool.  Note that these files should also be
## added to "Supporting Files" in ProjectBuilder.  The desired .o files that 
## result from these files should also be added to OTHER_OFILES above so they
## will be linked in.

# .msg files that should have msgwrap run on them
MSGFILES = 
# .defs files that should have mig run on them
DEFSFILES = 
# .mig files (no .defs files) that should have mig run on them
MIGFILES = 

## Add additional Help directories here (add them to the project as "Other 
## Resources" in Project Builder) so that they will be compressed into .store
## files and copied into the app wrapper.  If the help directories themselves
## need to also be in the app wrapper, then a cp command will need to be added
## in an after_install target.
OTHER_HELP_DIRS = 

# Don't add more rules here unless you want the first one to be the default
# target for make!  Put all your targets in Makefile.postamble.

###############################################################################
# Uncomment the following lines if you wish to have PB build BIND
# and have the files placed in their appropriate locations
###############################################################################

# This line builds BIND and copies GateKeeper's special named to the root
# GateKeeper project directory for inclusion in GateKeeper's app wrapper

project::

	compresshelp ./German.lproj/Help 			
 
tproject::

	cd BIND.4.9.4; pwd; $(MAKE); 
	cd BIND.4.9.4; pwd; /bin/rm -rf ./tmpBIND
	cd BIND.4.9.4; pwd; mkdir ./tmpBIND
	cd BIND.4.9.4; pwd; mkdir ./tmpBIND/BIND

	cd BIND.4.9.4; pwd; mv ./named_Gate/named ../named
	cd BIND.4.9.4; pwd; mv ./named/named ./tmpBIND/BIND/named
	cd BIND.4.9.4; pwd; mv ./named/named-xfer ./tmpBIND/BIND/named-xfer

	cd BIND.4.9.4; pwd; /NextAdmin/Installer.app/package -f ./tmpBIND/BIND BIND.info -d ../

	cd BIND.4.9.4; pwd; cp ./BIND.pre_install ../BIND.pkg
	cd BIND.4.9.4; pwd; cp ./BIND.post_install ../BIND.pkg
	cd BIND.4.9.4; pwd; cp ./BIND.post_delete ../BIND.pkg



# This cleans BIND and removes GateKeeper's special named 

tclean:: 

	rm -f named
	cd BIND.4.9.4; pwd; $(MAKE) clean;  

	cd BIND.4.9.4; pwd; /bin/rm -rf ./tmpBIND
	/bin/rm -rf ./BIND.pkg
