###############################################################################
#  NeXT Makefile.postamble 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.  Additional
#  rules (e.g., after_install) that are defined by the developer should be
#  defined in this file.
#
###############################################################################
# 
# Here are the variables exported by the common "app" makefiles that can be 
# used in any customizations you make to the template below:
# 
#	PRODUCT_ROOT - Name of top-level app-wrapper (e.g., Webster.app)
#	OFILE_DIR - Directory into which .o object files are generated.
#		    (Note that this name is calculated based on the target 
#		     architectures specified in Project Builder).
#	DERIVED_SRC_DIR - Directory used for all other derived files
#	ALL_CFLAGS - All the flags passed to the cc(1) driver for compilations
#
#	NAME - name of application, bundle, subproject, palette, etc.
#	LANGUAGE - langage in which the project is written (default "English")
#	ENGLISH - boolean flag set iff $(LANGUAGE) = "English"
#	JAPANESE - boolean flag set iff $(LANGUAGE) = "Japanese"
#	LOCAL_RESOURCES - localized resources (e.g. nib's, images) of project
#	GLOBAL_RESOURCES - non-localized resources of project
#	PROJECTVERSION - version of ProjectBuilder that output Makefile
#	APPICON - application icon file
#	DOCICONS - dock icon files
#	ICONSECTIONS - Specifies icon sections when linking executable 
#
#	CLASSES - Class implementation files in project.
#	HFILES - Header files in project.
#	MFILES - Other Objective-C source files in project. 
#	CFILES - Other C source files in project. 
#	PSWFILES - .psw files in the project
#	PSWMFILES - .pswm files in the project
#	SUBPROJECTS - Subprojects of this project
#	BUNDLES - Bundle subprojects of this project
#	OTHERSRCS - Other miscellaneous sources of this project
#	OTHERLINKED - Source files not matching a standard source extention
#
#	LIBS - Libraries to link with when making app target
#	DEBUG_LIBS - Libraries to link with when making debug target
#	PROF_LIBS - Libraries to link with when making profile target
#	OTHERLINKEDOFILES - Other relocatable files to (always) link in.
#
#	APP_MAKEFILE_DIR - Directory in which to find generic set of Makefiles
#	MAKEFILEDIR - Directory in which to find $(MAKEFILE)
#	MAKEFILE - Top level mechanism Makefile (e.g., app.make, bundle.make)
#	INSTALLDIR - Directory app will be installed into by 'install' target


# Change defaults assumed by the standard app makefiles here.  Edit the 
# following default values as appropriate. (Note that if no Makefile.postamble 
# exists, these values will have defaults set in common.make).

# Add Makefile.preamble, Makefile.postamble, and Makefile.dependencies here if
# you would like changes to them to invalidate previous builds.  The project
# depends on $(MAKEFILES) so that changes to Makefiles will trigger a re-build.
#MAKEFILES = Makefile Makefile.preamble Makefile.postamble Makefile.dependencies

# Optimization flag passed to compiler:
OPTIMIZATION_CFLAG = -O2

# Flags passed to compiler in normal 'app' compiles:
NORMAL_CFLAGS = $(OPTIMIZATION_CFLAG) -Wall

# Flags passed to compiler in 'debug' compiles:
DEBUG_CFLAGS = -g -Wall -DDEBUG

# Flags passed to compiler in 'profile' compiles
#PROFILE_CFLAGS = -g -pg $(OPTIMIZATION_CFLAG) -Wall -DPROFILE

# Ownership and permissions of files installed by 'install' target
INSTALL_AS_USER = root        # User to chown app to
INSTALL_AS_GROUP = wheel      # Group to chgrp app to 
INSTALL_PERMISSIONS = 4755    # If set, 'install' chmod's executable to this

# Options to strip for bundles, apps with bundles, and apps without bundles, 
# respectively.
#RELOCATABLE_STRIP_OPTS = -x -u
#DYLD_APP_STRIP_OPTS = -A -n
#APP_STRIP_OPTS = 
#TOOL_STRIP_OPTS = 
# (Note: APP_STRIP_OPTS and TOOL_STRIP_OPTS default to empty, but
#  developers doing their own dynamic loading should set this to 
#  $(DYLD_APP_STRIP_OPTS)).


#########################################################################
# Put rules to extend the behavior of the standard Makefiles here.  Typical 
# user-defined rules are before_install and after_install (please don't 
# redefine things like install or app, as they are owned by the top-level 
# Makefile API), which are rules that get invoked before and after the install 
# target runs.  Such rules should be specified with the '::' syntax rather than 
# a single colon.

# check in all modified source files to RCS directory and then
# bump global version number regardless of whether VersionNumber.h
# has changed.

rcs::

	ci </dev/null -l -mAuto ../../README_FIRST\
		 ~/Developer/RCS/SCSI2_ToolBox/README_FIRST,v;
	ci </dev/null -l -mAuto ../Documentation/README\
		~/Developer/RCS/SCSI2_ToolBox/SCSI_Inspector/Documentation/README,v;
	ci </dev/null -l -mAuto ../Documentation/TODO\
		 ~/Developer/RCS/SCSI2_ToolBox/SCSI_Inspector/Documentation/TODO,v;
	ci </dev/null -l -mAuto ../Documentation/COPYING\
		 ~/Developer/RCS/SCSI2_ToolBox/SCSI_Inspector/Documentation/COPYING,v;
	ci </dev/null -l -mAuto Makefile.preamble\
		 ~/Developer/RCS/SCSI2_ToolBox/SCSI_Inspector/Source/Makefile.preamble,v;
	ci </dev/null -l -mAuto\ Makefile.postamble\
		~/Developer/RCS/SCSI2_ToolBox/SCSI_Inspector/Source/Makefile.postamble,v;
	ci </dev/null -l -mAuto SCSIInspectorWindow.h\
		~/Developer/RCS/SCSI2_ToolBox/SCSI_Inspector/Source/SCSIInspectorWindow.h,v;
	ci </dev/null -l -mAuto SCSIInspectorWindow.m\
		~/Developer/RCS/SCSI2_ToolBox/SCSI_Inspector/Source/SCSIInspectorWindow.m,v;
	ci </dev/null -l -mAuto SCSISelectorWindow.h\
		~/Developer/RCS/SCSI2_ToolBox/SCSI_Inspector/Source/SCSISelectorWindow.h,v;
	ci </dev/null -l -mAuto SCSISelectorWindow.m\
		~/Developer/RCS/SCSI2_ToolBox/SCSI_Inspector/Source/SCSISelectorWindow.m,v;
	ci </dev/null -l -f -mAuto VersionNumber.h\
		 ~/Developer/RCS/SCSI2_ToolBox/SCSI_Inspector/Source/VersionNumber.h,v;

# prepare a distribution - copy SCSI_Inspector.app to main 
# distribution directory then pack directory using gzip.
# check in all source files with a status of stable

distribution:: app

	rm -rf ../SCSI_Inspector.app;
	rm ~/SCSI2_ToolBox.tgz;
	mv SCSI_Inspector.app ..;
	gnutar -czvps -C ../../.. -f ~/SCSI2_ToolBox.tgz SCSI2_ToolBox;

listing::

	enscript -fCourier9 -R -G -T4 *.h *.m Makefile*






