home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / xgopher.1.3 / Imakefile < prev    next >
Encoding:
Makefile  |  1993-05-11  |  4.4 KB  |  108 lines

  1.      XGOPHERDIR = $(LIBDIR)/xgopher
  2.  
  3.     /* You may add -O to the next line if you'd like.  There will
  4.        not be too much difference for most machines. */
  5.  
  6.     CDEBUGFLAGS =
  7.  
  8.  
  9. /*************************************************************************
  10.  **    for compiling Xgopher with Sun's OpenWindows 3, uncomment       **
  11.  **    the following 3 lines:                                          **
  12.  **     You may (not certain) need to add -lresolv to second of these   **
  13.  **     two lines if you have trouble connecting to other hosts.        **
  14.  **     In other words, maybe use:  EXTRA_LIBRARIES  = -lresolv -lm     **
  15.  *************************************************************************/
  16. /*
  17.   MKDIRHIER        = BourneShell $(BINDIR)/mkdirhier 
  18.   EXTRA_LIBRARIES  = -lm
  19.   XMULIB           = -lm -Bstatic -lXmu -Bdynamic
  20. */
  21.  
  22. /*************************************************************************
  23.  **    for compiling Xgopher under Solaris 2.1, you may need to add    **
  24.  **    the following additional defines if they are not supplied by    **
  25.  **     your Imake configuration files already (it won't hurt to        **
  26.  **     include them a second time).                                    **
  27.  *************************************************************************/
  28. /*
  29.   LOCAL_DEFINES    = -DSYSV -DSVR4
  30. */
  31.  
  32. /*************************************************************************
  33.  ** The following symbols are defined by Imake and used by the program: **
  34.  **                                                                     **
  35.  **    $(XAPPLOADDIR) is normally /usr/lib/X11/app-defaults            **
  36.  **    $(HELP_FILE) is path to help file; usually /usr/lib/X11/Xgopher **
  37.  *************************************************************************/
  38.  
  39. RESOURCE_DEFINES= -DHELP_FILE=\"$(XGOPHERDIR)/xgopher.help\"
  40.         DEFINES = $(RESOURCE_DEFINES) $(LOCAL_DEFINES)
  41.  
  42.         DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  43. LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  44.            SRCS = xgopher.c item.c itemList.c dir.c dirList.c markList.c \
  45.                   util.c misc.c net.c \
  46.                   gui.c resources.c help.c status.c jobs.c \
  47.                   panel.c save.c text.c error.c cso.c index.c \
  48.                   bkmkfile.c options.c version.c single.c itemInfo.c\
  49.           subst.c \
  50.           sc_dir.c sc_index.c sc_telnet.c sc_tn3270.c \
  51.           sc_cso.c sc_image.c sc_sound.c sc_text.c sc_binary.c \
  52.           sc_extend.c \
  53.                   KeyWSink.c
  54.  
  55.            OBJS = xgopher.o item.o itemList.o dir.o dirList.o markList.o \
  56.                   util.o misc.o net.o \
  57.                   gui.o resources.o help.o status.o jobs.o \
  58.                   panel.o save.o text.o error.o cso.o index.o \
  59.                   bkmkfile.o options.o version.o single.o itemInfo.o\
  60.           subst.o \
  61.           sc_dir.o sc_index.o sc_telnet.o sc_tn3270.o \
  62.           sc_cso.o sc_image.o sc_sound.o sc_text.o sc_binary.o \
  63.           sc_extend.o \
  64.               KeyWSink.o
  65.  
  66. ComplexProgramTarget(xgopher)
  67.  
  68.  
  69. /*************************************************************************
  70.  ** X11R4 does not include the "InstallNonExecFile" rule, so make one,  **
  71.  ** The macro definitions are copied from the X11R5 distribution        **
  72.  *************************************************************************/
  73.  
  74. #ifndef InstallNonExecFile
  75. /*
  76.  * InstallNonExecFile - generate rules to install a data file
  77.  */
  78. #define    InstallNonExecFile(file,dest)                    @@\
  79. install:: file                                @@\
  80.     MakeDir($(DESTDIR)dest)                        @@\
  81.     $(INSTALL) -c $(INSTDATFLAGS) file $(DESTDIR)dest
  82. #else /* InstallNonExecFile */
  83. #define    XgopherX11R5
  84. #endif /* InstallNonExecFile */
  85.  
  86. /*
  87.  * InstallNamedNonExec - generate rules to install a data file
  88.  */
  89. #ifndef InstallNamedNonExec
  90. #define    InstallNamedNonExec(srcname,dstname,dest)            @@\
  91. install:: srcname                            @@\
  92.     MakeDir($(DESTDIR)dest)                        @@\
  93.     $(INSTALL) -c $(INSTDATFLAGS) srcname $(DESTDIR)dest/dstname
  94. #endif /* InstallNamedNonExec */
  95.  
  96. /*************************************************************************
  97.  ** Install the application help and resource files                     **
  98.  *************************************************************************/
  99.  
  100. InstallNonExecFile(xgopher.help,$(XGOPHERDIR))
  101. InstallAppDefaults(Xgopher)
  102.  
  103. #ifndef    XgopherX11R5        /* we're probably not running X11R5 */
  104. InstallNamedNonExec(Xgopher-complete.ad,Xgopher-color,$(XAPPLOADDIR))
  105. #else    /* XgopherX11R5 */
  106. InstallAppDefaults(Xgopher-color)
  107. #endif    /* XgopherX11R5 */
  108.