home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / UNIX / ARCHIE / CLIENTS / IMAKEFIL < prev    next >
Encoding:
Text File  |  1991-08-28  |  3.6 KB  |  109 lines

  1. #
  2. # Imakefile for xarchie : X11 Browser interface to Archie
  3. #
  4. # George Ferguson, ferguson@cs.rochester.edu, 21 Aug 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. ##############################################################################
  45. # Nothing to change below here...
  46.  
  47. SUBDIRS = Ad2c EzMenu
  48. #define IHaveSubdirs
  49. #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
  50. MakeSubdirs($(SUBDIRS))
  51.  
  52. ASRCS = aquery.c atalloc.c dirsend.c get_pauth.c get_vdir.c \
  53.     p_err_text.c ptalloc.c regex.c stcopy.c support.c \
  54.     vl_comp.c vlalloc.c
  55. XSRCS = xarchie.c db.c actions.c types.c classnames.c procquery.c settings.c \
  56.     ftp.c alert.c confirm.c
  57.  
  58. AOBJS = aquery.o atalloc.o dirsend.o get_pauth.o get_vdir.o \
  59.     p_err_text.o ptalloc.o regex.o stcopy.o support.o \
  60.     vl_comp.o vlalloc.o
  61. XOBJS = xarchie.o db.o actions.o types.o classnames.o procquery.o settings.o \
  62.     ftp.o alert.o confirm.o
  63.  
  64. SRCS = $(ASRCS) $(XSRCS)
  65. OBJS = $(AOBJS) $(XOBJS)
  66.  
  67. DEFINES =        -DARCHIE -DXARCHIE
  68. INCLUDES =        -I. -I$(EZMENUDIR)
  69.  
  70. DEPLIBS =        $(EZMENULIB) XawClientDepLibs
  71. LOCAL_LIBRARIES =    -L$(EZMENUDIR) -l$(EZMENULIB) XawClientLibs
  72.  
  73. ComplexProgramTarget(xarchie)
  74. InstallAppDefaults(Xarchie)
  75.  
  76. # This target allows you to install only xarchie, its resource file, and
  77. # its man page, without installing in the SUBDIRS.
  78. install.xarchie: xarchie Xarchie.ad xarchie.man
  79.     $(INSTALL) -c $(INSTPGMFLAGS) xarchie $(BINDIR)
  80.     $(INSTALL) -c $(INSTAPPFLAGS) Xarchie.ad $(XAPPLOADDIR)/Xarchie
  81.     $(INSTALL) -c $(INSTMANFLAGS) xarchie.man $(MANDIR)/xarchie.1
  82.  
  83. # Need to tell make how to make the EzMenu library
  84. $(EZMENULIB):
  85.     (cd $(EZMENUDIR); echo "making all in $(CURRENT_DIR)/EzMenu..."; \
  86.     $(MAKE) $(MFLAGS) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' all);
  87.  
  88. #
  89. # C code for fallback resources
  90. #
  91. Xarchie.ad.h: Xarchie.ad
  92.     $(AD2C) Xarchie.ad >Xarchie.ad.h
  93.  
  94. clean::
  95.     rm -f Xarchie.ad.h
  96.  
  97. #
  98. # Other targets for archiving purposes. Note that makekit needs the
  99. # directory names in the MANIFEST, but tar will duplicate them if asked
  100. # to archive both the directory and its contents, hence the awk pattern.
  101. #
  102. kit:
  103.     makekit -iMANIFEST -oMANIFEST -h2
  104.  
  105. tar:
  106.     tar cvf - `cat MANIFEST | awk 'NR>2 && $$1 != "Ad2c" \
  107.                                     && $$1 != "EzMenu" {print $$1}'` |\
  108.     compress >xarchie.tar.Z
  109.