#   outer_make_macros.include		WJS  Jul 04
#   Provide the bulk of the text needed to compile outer
#     Note that some optional switches such as USE_DOUBLE are NOT in
#   the "output" of this file.  Further, I'm not sure if it's possible
#   to override any text in this file unless said text is present as
#   a macro definition on the make command for the inner that is 
#   including this file.

#	"Output" macro values
#		OUTER_COMPILE_SWITCHES
#		OUTER_LIB_LIST
#		OUTER_OBJ_LIST
#		OUTER_H_DEPENDS
#		PARSE_H_DEPENDS
#		PATH_INFO_H_DEPENDS
#		UTILS_H_DEPENDS
#		CORE_H_DEPENDS

#	"Input" macro values expected from makefile.inner.  Most likely all
#	are required by makefile.inner anyway.
#		OUTERSRCDIR
#		MASTERINCDIR
#		LIBDIR
#		OPTIONS
#		INNEROPTIONS
#		CFLAGS
#	"Input" macro values expected from environment
#		BUTTONIMAGESDIR
#           	MYADDR
#	        OPTIONSERVER
#	        INFOSERVER
#	        DIRSERVER
#		DISPLAY_DATA_URL
#		BACKGROUND_COLOR
#	"Input" macro values accepted from make command line (presumably tests)
#		ADDL_SWITCHES
#		ADDL_CFLAGS 

#  23 Jul 07.  wjs
#	Add macro OUTER_OBJ_LIST
#  12 Jul 06.  wjs
#	BACKGROUND_COLOR; DISPLAY_DATA_URL

###################################################################

#   where outer.h is
OUTERINCDIR = ${OUTERSRCDIR}

include ${MASTERINCDIR}/h_file_dependency_macros.include
OUTER_H_DEPENDS = ${OUTERINCDIR}/outer.h \
		  ${PATH_INFO_H_DEPENDS}

#   Compilation switches
#   "Original" compiles of methods had, as a shell command, an
#	if BUTTONIMAGESDIR $(CC) -DBUTTON=blah ${REST_OF_COMPILE}
#	else $(CC) ${REST_OF_COMPILE}
#   jgofs15 release outer.c assumed that a defined BUTTON was non-empty.
#   Removal of that coding assumption in outer_brev.c allows inclusion of
#   switch as below.
#	Note that DISPLAY_DATA_URL is NOT a string variable and therefore
#   does not have enclosing quotation marks within the apostrophes
OUTER_D_SWITCHES = \
	   -DOPTIONS='"${OPTIONS}"' \
           -DINNEROPTIONS='"${INNEROPTIONS}"' \
           -DMYADDR='"${MYADDR}"' \
           -DOPTIONSERVER='"${OPTIONSERVER}"' \
           -DINFOSERVER='"${INFOSERVER}"' \
           -DDIRSERVER='"${DIRSERVER}"' \
	   -DBUTTONIMAGESDIR='"${BUTTONIMAGESDIR}"' \
	   -DBACKGROUND_COLOR='"${BACKGROUND_COLOR}"' \
	   -DDISPLAY_DATA_URL='${DISPLAY_DATA_URL}' \
	   -DQUOTENOLINK

OUTER_OBJ_LIST =
OUTER_LIB_LIST = ${LIBDIR}/jgofs.a

#   Tried preceding this list with -I{TESTINCDIR} w/idea that this would
#   be null unless some test .h file was involved.  There's evidence that
#   this caused trouble (but some evidence it didn't).  This note in
#   case the idea is revisited... (May 04)
OUTER_I_LIST =  -I${OUTERINCDIR} -I${MASTERINCDIR}

OUTER_COMPILE_SWITCHES = \
		${CFLAGS} ${ADDL_CFLAGS} \
		${OUTER_D_SWITCHES} ${ADDL_SWITCHES} \
		${OUTER_I_LIST}
