     XGOPHERDIR = $(LIBDIR)/xgopher

    /* You may add -O to the next line if you'd like.  There will
       not be too much difference for most machines. */

    CDEBUGFLAGS =


/*************************************************************************
 **	for compiling Xgopher with Sun's OpenWindows 3, uncomment       **
 **	the following 3 lines:                                          **
 *************************************************************************/
/*
  MKDIRHIER        = BourneShell $(BINDIR)/mkdirhier 
  EXTRA_LIBRARIES  = -lresolv -lm
  XMULIB           = -lm -Bstatic -lXmu -Bdynamic
*/

/*************************************************************************
 ** The following symbols are defined by Imake and used by the program: **
 **                                                                     **
 **	$(XAPPLOADDIR) is normally /usr/lib/X11/app-defaults            **
 **	$(HELP_FILE) is path to help file; usually /usr/lib/X11/Xgopher **
 *************************************************************************/

        DEFINES = -DAPP_DEFAULTS_DIR=\"$(XAPPLOADDIR)\" \
		  -DHELP_FILE=\"$(XGOPHERDIR)/xgopher.help\" \
		  -DTERM -I/home/mjr/term

        DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) /home/mjr/term/client.a
           SRCS = xgopher.c item.c itemList.c dir.c dirList.c markList.c \
                  util.c misc.c net.c ioutil.c \
                  gui.c resources.c help.c \
                  panel.c save.c text.c error.c cso.c index.c \
                  bkmkfile.c options.c version.c single.c itemInfo.c\
                  KeyWSink.c

           OBJS = xgopher.o item.o itemList.o dir.o dirList.o markList.o \
                  util.o misc.o net.o ioutil.o \
                  gui.o resources.o help.o \
                  panel.o save.o text.o error.o cso.o index.o \
                  bkmkfile.o options.o version.o single.o itemInfo.o\
        	  KeyWSink.o

ComplexProgramTarget(xgopher)

/*************************************************************************
 ** X11R4 does not include the "InstallNonExecFile" rule, so make one,  **
 ** The macro definitions are copied from the X11R5 distribution        **
 *************************************************************************/

#ifndef InstallNonExecFile
/*
 * InstallNonExecFile - generate rules to install a data file
 */
#define	InstallNonExecFile(file,dest)					@@\
install:: file								@@\
	MakeDir($(DESTDIR)dest)						@@\
	$(INSTALL) -c $(INSTDATFLAGS) file $(DESTDIR)dest
#else /* InstallNonExecFile */
#define	XgopherX11R5
#endif /* InstallNonExecFile */

/*
 * InstallNamedNonExec - generate rules to install a data file
 */
#ifndef InstallNamedNonExec
#define	InstallNamedNonExec(srcname,dstname,dest)			@@\
install:: srcname							@@\
	MakeDir($(DESTDIR)dest)						@@\
	$(INSTALL) -c $(INSTDATFLAGS) srcname $(DESTDIR)dest/dstname
#endif /* InstallNamedNonExec */

/*************************************************************************
 ** Install the application help and resource files                     **
 *************************************************************************/

InstallNonExecFile(xgopher.help,$(XGOPHERDIR))
InstallAppDefaults(Xgopher)

#ifndef	XgopherX11R5		/* we're probably not running X11R5 */
InstallNamedNonExec(Xgopher-complete.ad,Xgopher-color,$(XAPPLOADDIR))
#else	/* XgopherX11R5 */
InstallAppDefaults(Xgopher-color)
#endif	/* XgopherX11R5 */
