home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / UNIX / ARCHIE / CLIENTS / XARCHIE2.TAR / Imakefile < prev    next >
Encoding:
Makefile  |  1991-11-02  |  3.5 KB  |  106 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. # To enable Prospero tracing (controlled by the -debug option), uncomment this
  36. #PDEBUG = -DDEBUG
  37.  
  38. # Does your system have re_comp() and re_exec(), or regcmp() and regex()
  39. # [in the case of A/UX]? If not, uncomment the following definitions.
  40. #REGEXC = regex.c
  41. #REGEXO = regex.o
  42.  
  43. ##############################################################################
  44. # Nothing to change below here...
  45.  
  46. SUBDIRS = Ad2c EzMenu
  47. #define IHaveSubdirs
  48. #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
  49. MakeSubdirs($(SUBDIRS))
  50.  
  51. ASRCS = aquery.c atalloc.c dirsend.c get_pauth.c get_vdir.c \
  52.     perrmesg.c ptalloc.c stcopy.c support.c vl_comp.c vlalloc.c
  53. XSRCS = xarchie.c db.c actions.c types.c classnames.c procquery.c settings.c \
  54.     ftp.c alert.c confirm.c dialog.c
  55.  
  56. AOBJS = aquery.o atalloc.o dirsend.o get_pauth.o get_vdir.o \
  57.     perrmesg.o ptalloc.o stcopy.o support.o vl_comp.o vlalloc.o
  58. XOBJS = xarchie.o db.o actions.o types.o classnames.o procquery.o settings.o \
  59.     ftp.o alert.o confirm.o dialog.o
  60.  
  61. SRCS = $(ASRCS) $(XSRCS) $(REGEXC)
  62. OBJS = $(AOBJS) $(XOBJS) $(REGEXO)
  63.  
  64. DEFINES =        -DARCHIE -DXARCHIE $(PDEBUG)
  65. INCLUDES =        -I. -I$(EZMENUDIR)
  66.  
  67. DEPLIBS =        $(EZMENULIB) XawClientDepLibs
  68. LOCAL_LIBRARIES =    -L$(EZMENUDIR) -l$(EZMENULIB) XawClientLibs
  69.  
  70. ComplexProgramTarget(xarchie)
  71. InstallAppDefaults(Xarchie)
  72.  
  73. # This target allows you to install only xarchie, its resource file, and
  74. # its man page, without installing in the SUBDIRS.
  75. install.xarchie: xarchie Xarchie.ad xarchie.man
  76.     $(INSTALL) -c $(INSTPGMFLAGS) xarchie $(BINDIR)
  77.     $(INSTALL) -c $(INSTAPPFLAGS) Xarchie.ad $(XAPPLOADDIR)/Xarchie
  78.     $(INSTALL) -c $(INSTMANFLAGS) xarchie.man $(MANDIR)/xarchie.1
  79.  
  80. # Need to tell make how to make the EzMenu library
  81. $(EZMENULIB):
  82.     (cd $(EZMENUDIR); echo "making all in $(CURRENT_DIR)/EzMenu..."; \
  83.     $(MAKE) $(MFLAGS) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' all);
  84.  
  85. #
  86. # Make C code for fallback resources from application resource file
  87. #
  88. Xarchie.ad.h: Xarchie.ad
  89.     $(AD2C) Xarchie.ad >Xarchie.ad.h
  90.  
  91. clean::
  92.     rm -f Xarchie.ad.h
  93.  
  94. #
  95. # Other targets for archiving purposes. Note that makekit needs the
  96. # directory names in the MANIFEST, but tar will duplicate them if asked
  97. # to archive both the directory and its contents, hence the awk pattern.
  98. #
  99. kit:
  100.     makekit -iMANIFEST -oMANIFEST -h2
  101.  
  102. tar:
  103.     tar cvf - `cat MANIFEST | awk 'NR>2 && $$1 != "Ad2c" \
  104.                                     && $$1 != "EzMenu" {print $$1}'` |\
  105.     compress >xarchie.tar.Z
  106.