home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / freeWAIS-sf-1.1 / x / Imakefile < prev    next >
Encoding:
Makefile  |  1994-04-06  |  4.5 KB  |  182 lines

  1. ############################ -*- Mode: Makefile -*- ###########################
  2. ## Imakefile -- 
  3. ## ITIID           : $ITI$ $Header $__Header$
  4. ## Author          : Jonny Goldman
  5. ## Created On      : Wed Mar  9 10:59:20 1994
  6. ## Last Modified By: Ulrich Pfeifer
  7. ## Last Modified On: Thu Apr  7 05:51:41 1994
  8. ## Update Count    : 38
  9. ## Status          : Unknown, Use with caution!
  10. ###############################################################################
  11.  
  12. #include "../Install.tmpl"
  13.  
  14. #ifdef ISO
  15.    EXTRA_INCLUDES = -I../ctype
  16.           ISOOBJS = ../ctype/ctype.o
  17. #endif
  18.           VERSION = 0.86
  19.  
  20.               TOP = ..
  21.  
  22.            SRCDIR = $(TOP)/x
  23.            SUPDIR = $(TOP)/ir
  24.             UIDIR = $(TOP)/ui
  25.  
  26. /*
  27.  For a smaller client, but with no local search,
  28.  use this line this instead of the latter:
  29. IR_LIB        = ../bin/client.a
  30. */
  31. #ifdef SYSVREGEXP
  32.         REGEXPLIB = ../regexp/libregexp.a
  33. #endif
  34.  
  35. #ifdef LOCAL_SEARCH        
  36.          LOCALLIB = ../ir/liblocal.a 
  37. #endif
  38.            IR_LIB = $(TOP)/ir/libinv.a
  39.  
  40.      PROTOCOL_LIB = $(TOP)/ir/libwais.a
  41.  
  42.            LIBFTW = $(TOP)/lib/libftw.a
  43.  
  44.            UI_LIB = $(IR_LIB) $(PROTOCOL_LIB)  $(LOCALLIB) $(REGEXPLIB) $(IR_LIB) $(LIBFTW)
  45.  
  46.  
  47. /*
  48.  For the Motif version , add -lXm
  49.  
  50.   LOCAL_LIBRARIES = $(UI_LIB) -lXm $(XAWLIB) $(XTOOLLIB) $(XMULIB) $(XLIB)
  51.  
  52. */
  53.  
  54.  
  55.   LOCAL_LIBRARIES = $(UI_LIB) $(XAWLIB) $(XTOOLLIB) $(XMULIB) $(XLIB)
  56.  
  57.  
  58. /*
  59.  For the openwin version version , add -I/usr/openwin/include
  60.  
  61.          INCLUDES = -I$(SRCDIR) -I$(SUPDIR) -I$(UIDIR) -I/usr/openwin/include
  62.  
  63. */
  64.  
  65.  
  66.          INCLUDES = -I$(SRCDIR) -I$(SUPDIR) -I$(UIDIR) -I/usr/openwin/include
  67.  
  68. /* for alternate font in text popup, add -DUSE_ALTFONT to CFLAGS (somehow) */
  69.  
  70. /* this is R5 only! */
  71.  
  72.     EXTRA_DEFINES = -DUSE_ALTFONT $(CHARFLAGS) 
  73.  
  74. /*
  75.  For the Motif version, add -DMOTIF and -D_NO_PROTO if your C compiler
  76.  can't handle ANSI prototypes.  You may need to fiddle with the libraries
  77.  to insure all symbols are defined (I did!).
  78.  
  79.       CDEBUGFLAGS = -g -Bstatic -DUSE_ALTFONT -DMOTIF -D_NO_PROTO
  80.  
  81. */
  82.  
  83.  
  84.              TOBJ = \
  85.                     xwais.o \
  86.                     display.o \
  87.                     tcommands.o \
  88.                     scommands.o 
  89.  
  90.              QOBJ = \
  91.                     xwaisq.o \
  92.                     qdisplay.o \
  93.                     text.o \
  94.                      qcommands.o \
  95.                     filereq.o \
  96.                     scommands.o \
  97.                     catalog.o \
  98.                     myAsciiSink.o \
  99.                     myAsciiSrc.o \
  100.                      $(TOP)/ui/question.o \
  101.                     $(TOP)/ui/document.o \
  102.                     $(TOP)/ui/wais-ui.o
  103.  
  104.              OBJS = MyList.o \
  105.                          util.o \
  106.                     $(TOP)/ui/source.o
  107.  
  108.        XWAIS_OBJS = $(TOBJ) $(OBJS) $(ISOOBJS) 
  109.       XWAISQ_OBJS = $(QOBJ) $(OBJS) $(ISOOBJS) 
  110.  
  111.           SYSLIBS = -lm -lc
  112.  
  113.             XWAIS = xwais
  114.            XWAISQ = xwaisq
  115.  
  116.              SRCS = \
  117.                     MyList.c \
  118.                     Viewport.c \
  119.                     catalog.c \
  120.                     display.c \
  121.                     filereq.c \
  122.                     myAsciiSink.c \
  123.                     myAsciiSrc.c \
  124.                     qcommands.c \
  125.                     qdisplay.c \
  126.                     scommands.c \
  127.                     tcommands.c \
  128.                     text.c \
  129.                     util.c \
  130.                     xwais.c \
  131.                     xwaisq.c 
  132.  
  133. PROGRAMS = $(XWAIS) $(XWAISQ) Xwais.ad
  134.  
  135. AllTarget($(PROGRAMS))
  136.  
  137. NormalProgramTarget($(XWAIS),$(XWAIS_OBJS),$(UI_LIB),$(LOCAL_LIBRARIES),$(SYSLIBS))
  138. NormalProgramTarget($(XWAISQ),$(XWAISQ_OBJS),$(UI_LIB),$(LOCAL_LIBRARIES),$(SYSLIBS))
  139.  
  140. /* relies on /bin/csh !!
  141. DATE=`date +%y%m%d.%T`
  142.  
  143. install:: all
  144.     ((test -f $(XAPPLOADDIR)/Xwais) && \
  145.       mv $(XAPPLOADDIR)/Xwais $(XAPPLOADDIR)/Xwais.$(DATE))
  146. */
  147.  
  148. InstallAppDefaults(Xwais)
  149. InstallNonExec(XwaisHELP,$(INSTALLROOT)/lib)
  150. InstallNonExec(XwaisqHELP,$(INSTALLROOT)/lib)
  151. InstallProgram($(XWAIS), $(BINDIR))
  152. InstallProgram($(XWAISQ), $(BINDIR))
  153.  
  154. CppFileTarget(Xwais.ad,Xwais.raw,-DINSTALLROOT=$(INSTALLROOT) -DBINDIR=$(BINDIR) -DXAPPLOADDIR=$(XAPPLOADDIR),Xwais.raw)
  155.  
  156. $(TOP)/ui/question.o $(TOP)/ui/document.o $(TOP)/ui/wais-ui.o $(TOP)/ui/source.o:
  157.     cd ../ui; $(MAKE) $@ 
  158.  
  159. $(IR_LIB):
  160.     (cd $(TOP)/ir;make ${IR_LIB})
  161.  
  162. $(PROTOCOL_LIB):
  163.     (cd $(TOP)/ir;make ${PROTOCOL_LIB})
  164.  
  165. clean::
  166.     $(RM) Xwais Xwais.ad Makefile.bak *%
  167.  
  168. veryclean:: clean
  169.     $(RM) xwais xwaisq
  170.  
  171. DependTarget()
  172.  
  173. #ifdef SYSVREGEXP
  174. $(REGEXPLIB):
  175.     cd ../regexp; $(MAKE) 
  176. #endif
  177.  
  178. #ifdef LOCAL_SEARCH
  179. $(LOCALLIB):
  180.     cd ../ir; $(MAKE) 
  181. #endif
  182.