home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / UNIX / ARCHIE / CLIENTS / XARCHIE1.TAR / Imakefile < prev    next >
Encoding:
Makefile  |  1991-09-12  |  3.7 KB  |  112 lines

  1. #
  2. # Imakefile for xarchie : X11 Browser interface to Archie
  3. #
  4. # George Ferguson, ferguson@cs.rochester.edu, 12 Sep 1991.
  5. #
  6.  
  7. # Where do you want this stuff? Uncomment and adjust these to change the
  8. # destinations of "make install" and "make install.man" if the defaults
  9. # are not satisfactory.
  10. #BINDIR = bin
  11. #LIBDIR = lib
  12. #MANDIR = man/man1
  13. ##undef ManSuffix
  14. ##define ManSuffix 1
  15.  
  16. # Where is the app-defaults to C converter?
  17. # Only needed if you change the app-defaults file Xarchie.ad and want the
  18. # changes compiled into the program. If you don't have ad2c you should
  19. # remove the extra clean target for Xarchie.ad.h below. If you lose
  20. # Xarchie.ad.h and can't remake it, create it to be an empty file. Of course
  21. # then you'll have to use the resource file at run time.
  22. # If your ad2c came from this xarchie distribution, then use the following
  23. # target, otherwise change it to reflect where you put ad2c.
  24. AD2C = Ad2c/ad2c.script
  25.  
  26. # Where is the EzMenu widget package?
  27. # You should have received a copy of the EzMenu package with this
  28. # xarchie distribution.
  29. EZMENUDIR = EzMenu
  30. EZMENULIB = ezMenu$(TARGET_MACH)
  31.  
  32. # How excited are you about debugging? This can be -g, -O, or nothing.
  33. CDEBUGFLAGS = -g
  34.  
  35. # Are you using gcc? If so, read on:
  36. #   [from Brendan Kehoe (brendan@cs.widener.edu)]
  37. #   dirsend.c shouldn't be compiled with Gnu C.  Until gcc 2.0, structure
  38. #   passing is completely hosed on Suns -- and the inet_ntoa() calls in
  39. #   dirsend will seg fault.
  40. # You should uncommment this if you're using gcc.
  41. #dirsend.o:
  42. #    cc -c $(CFLAGS) dirsend.c
  43.  
  44. # Does your system have re_comp() and re_exec()? If not, uncomment the
  45. # following definitions.
  46. #REGEXC = regex.c
  47. #REGEXO = regex.o
  48.  
  49. ##############################################################################
  50. # Nothing to change below here...
  51.  
  52. SUBDIRS = Ad2c EzMenu
  53. #define IHaveSubdirs
  54. #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
  55. MakeSubdirs($(SUBDIRS))
  56.  
  57. ASRCS = aquery.c atalloc.c dirsend.c get_pauth.c get_vdir.c \
  58.     p_err_text.c ptalloc.c stcopy.c support.c vl_comp.c vlalloc.c
  59. XSRCS = xarchie.c db.c actions.c types.c classnames.c procquery.c settings.c \
  60.     ftp.c alert.c confirm.c
  61.  
  62. AOBJS = aquery.o atalloc.o dirsend.o get_pauth.o get_vdir.o \
  63.     p_err_text.o ptalloc.o stcopy.o support.o vl_comp.o vlalloc.o
  64. XOBJS = xarchie.o db.o actions.o types.o classnames.o procquery.o settings.o \
  65.     ftp.o alert.o confirm.o
  66.  
  67. SRCS = $(ASRCS) $(XSRCS) $(REGEXC)
  68. OBJS = $(AOBJS) $(XOBJS) $(REGEXO)
  69.  
  70. DEFINES =        -DARCHIE -DXARCHIE
  71. INCLUDES =        -I. -I$(EZMENUDIR)
  72.  
  73. DEPLIBS =        $(EZMENULIB) XawClientDepLibs
  74. LOCAL_LIBRARIES =    -L$(EZMENUDIR) -l$(EZMENULIB) XawClientLibs
  75.  
  76. ComplexProgramTarget(xarchie)
  77. InstallAppDefaults(Xarchie)
  78.  
  79. # This target allows you to install only xarchie, its resource file, and
  80. # its man page, without installing in the SUBDIRS.
  81. install.xarchie: xarchie Xarchie.ad xarchie.man
  82.     $(INSTALL) -c $(INSTPGMFLAGS) xarchie $(BINDIR)
  83.     $(INSTALL) -c $(INSTAPPFLAGS) Xarchie.ad $(XAPPLOADDIR)/Xarchie
  84.     $(INSTALL) -c $(INSTMANFLAGS) xarchie.man $(MANDIR)/xarchie.1
  85.  
  86. # Need to tell make how to make the EzMenu library
  87. $(EZMENULIB):
  88.     (cd $(EZMENUDIR); echo "making all in $(CURRENT_DIR)/EzMenu..."; \
  89.     $(MAKE) $(MFLAGS) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' all);
  90.  
  91. #
  92. # C code for fallback resources
  93. #
  94. Xarchie.ad.h: Xarchie.ad
  95.     $(AD2C) Xarchie.ad >Xarchie.ad.h
  96.  
  97. clean::
  98.     rm -f Xarchie.ad.h
  99.  
  100. #
  101. # Other targets for archiving purposes. Note that makekit needs the
  102. # directory names in the MANIFEST, but tar will duplicate them if asked
  103. # to archive both the directory and its contents, hence the awk pattern.
  104. #
  105. kit:
  106.     makekit -iMANIFEST -oMANIFEST -h2
  107.  
  108. tar:
  109.     tar cvf - `cat MANIFEST | awk 'NR>2 && $$1 != "Ad2c" \
  110.                                     && $$1 != "EzMenu" {print $$1}'` |\
  111.     compress >xarchie.tar.Z
  112.