
# $Id: edmakefile,v 1.18 1995/12/19 13:18:35 svein Exp $

{

	if ( $1 == "CC" ) {
		if (cc == "cc") {
			print $1 " " $2 " cc"
		} else {
			print $1 " " $2 " gcc"
		}
		printed = 1
	}

	if ( $1 == "XITE_BIN_DEST" ) {
		print $1 " " $2 " " bin
		printed = 1
	}

	if ( $1 == "XITE_LIB_DEST" ) {
		print $1 " " $2 " " lib
		printed = 1
	}

	if ( $1 == "XITE_INC_DEST" ) {
		print $1 " " $2 " " inc
		printed = 1
	}

	if ( $1 == "XITE_MAN_DEST" ) {
		print $1 " " $2 " " man
		printed = 1
	}

	if ( $1 == "XITE_DOC_DEST" ) {
		print $1 " " $2 " " doc "/ReferenceManual"
		printed = 1
	}

	if ( $1 == "MATLAB_INC" ) {
		print $1 " " $2 " " matinc
		printed = 1
	}

	if ( $1 == "MATLAB_LIB" ) {
		print $1 " " $2 " " matlib
		printed = 1
	}

	if ( $1 == "MATLAB_MEX_DEST" ) {
		print $1 " " $2 " " matmex
		printed = 1
	}

	if ( $1 == "X_INC_DIR" ) {
		print $1 " " $2 " " xinc
		printed = 1
	}

	if ( $1 == "X_LIB_DIR" ) {
		print $1 " " $2 " " xlib
		printed = 1
	}

	if ( $1 == "TIFF_INC_DIR" ) {
		print $1 " " $2 " " tiffinc
		printed = 1
	}

	if ( $1 == "TIFF_LIB_DIR" ) {
		print $1 " " $2 " " tifflib
		printed = 1
	}

	if ( $1 == "PNM_INC_DIR" ) {
		print $1 " " $2 " " pnminc
		printed = 1
	}

	if ( $1 == "PNM_LIB_DIR" ) {
		print $1 " " $2 " " pnmlib
		printed = 1
	}

	if ( $1 == "MATLAB_HOSTTYPE" ) {
		print $1 " " $2 " " matlab_hosttype
		printed = 1
	}

	if ( $1 == "CFLAGS" ) {
		if (cc == "cc") {
			print $1 " " $2 " $(CFLAGS_PROD_CC)"
		} else {
			print $1 " " $2 " $(CFLAGS_PROD_GCC)"
		}
		printed = 1
	}

	if (! printed) print $0
	else printed = 0
}
