home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-04-06 | 4.5 KB | 182 lines |
- ############################ -*- Mode: Makefile -*- ###########################
- ## Imakefile --
- ## ITIID : $ITI$ $Header $__Header$
- ## Author : Jonny Goldman
- ## Created On : Wed Mar 9 10:59:20 1994
- ## Last Modified By: Ulrich Pfeifer
- ## Last Modified On: Thu Apr 7 05:51:41 1994
- ## Update Count : 38
- ## Status : Unknown, Use with caution!
- ###############################################################################
-
- #include "../Install.tmpl"
-
- #ifdef ISO
- EXTRA_INCLUDES = -I../ctype
- ISOOBJS = ../ctype/ctype.o
- #endif
- VERSION = 0.86
-
- TOP = ..
-
- SRCDIR = $(TOP)/x
- SUPDIR = $(TOP)/ir
- UIDIR = $(TOP)/ui
-
- /*
- For a smaller client, but with no local search,
- use this line this instead of the latter:
- IR_LIB = ../bin/client.a
- */
- #ifdef SYSVREGEXP
- REGEXPLIB = ../regexp/libregexp.a
- #endif
-
- #ifdef LOCAL_SEARCH
- LOCALLIB = ../ir/liblocal.a
- #endif
- IR_LIB = $(TOP)/ir/libinv.a
-
- PROTOCOL_LIB = $(TOP)/ir/libwais.a
-
- LIBFTW = $(TOP)/lib/libftw.a
-
- UI_LIB = $(IR_LIB) $(PROTOCOL_LIB) $(LOCALLIB) $(REGEXPLIB) $(IR_LIB) $(LIBFTW)
-
-
- /*
- For the Motif version , add -lXm
-
- LOCAL_LIBRARIES = $(UI_LIB) -lXm $(XAWLIB) $(XTOOLLIB) $(XMULIB) $(XLIB)
-
- */
-
-
- LOCAL_LIBRARIES = $(UI_LIB) $(XAWLIB) $(XTOOLLIB) $(XMULIB) $(XLIB)
-
-
- /*
- For the openwin version version , add -I/usr/openwin/include
-
- INCLUDES = -I$(SRCDIR) -I$(SUPDIR) -I$(UIDIR) -I/usr/openwin/include
-
- */
-
-
- INCLUDES = -I$(SRCDIR) -I$(SUPDIR) -I$(UIDIR) -I/usr/openwin/include
-
- /* for alternate font in text popup, add -DUSE_ALTFONT to CFLAGS (somehow) */
-
- /* this is R5 only! */
-
- EXTRA_DEFINES = -DUSE_ALTFONT $(CHARFLAGS)
-
- /*
- For the Motif version, add -DMOTIF and -D_NO_PROTO if your C compiler
- can't handle ANSI prototypes. You may need to fiddle with the libraries
- to insure all symbols are defined (I did!).
-
- CDEBUGFLAGS = -g -Bstatic -DUSE_ALTFONT -DMOTIF -D_NO_PROTO
-
- */
-
-
- TOBJ = \
- xwais.o \
- display.o \
- tcommands.o \
- scommands.o
-
- QOBJ = \
- xwaisq.o \
- qdisplay.o \
- text.o \
- qcommands.o \
- filereq.o \
- scommands.o \
- catalog.o \
- myAsciiSink.o \
- myAsciiSrc.o \
- $(TOP)/ui/question.o \
- $(TOP)/ui/document.o \
- $(TOP)/ui/wais-ui.o
-
- OBJS = MyList.o \
- util.o \
- $(TOP)/ui/source.o
-
- XWAIS_OBJS = $(TOBJ) $(OBJS) $(ISOOBJS)
- XWAISQ_OBJS = $(QOBJ) $(OBJS) $(ISOOBJS)
-
- SYSLIBS = -lm -lc
-
- XWAIS = xwais
- XWAISQ = xwaisq
-
- SRCS = \
- MyList.c \
- Viewport.c \
- catalog.c \
- display.c \
- filereq.c \
- myAsciiSink.c \
- myAsciiSrc.c \
- qcommands.c \
- qdisplay.c \
- scommands.c \
- tcommands.c \
- text.c \
- util.c \
- xwais.c \
- xwaisq.c
-
- PROGRAMS = $(XWAIS) $(XWAISQ) Xwais.ad
-
- AllTarget($(PROGRAMS))
-
- NormalProgramTarget($(XWAIS),$(XWAIS_OBJS),$(UI_LIB),$(LOCAL_LIBRARIES),$(SYSLIBS))
- NormalProgramTarget($(XWAISQ),$(XWAISQ_OBJS),$(UI_LIB),$(LOCAL_LIBRARIES),$(SYSLIBS))
-
- /* relies on /bin/csh !!
- DATE=`date +%y%m%d.%T`
-
- install:: all
- ((test -f $(XAPPLOADDIR)/Xwais) && \
- mv $(XAPPLOADDIR)/Xwais $(XAPPLOADDIR)/Xwais.$(DATE))
- */
-
- InstallAppDefaults(Xwais)
- InstallNonExec(XwaisHELP,$(INSTALLROOT)/lib)
- InstallNonExec(XwaisqHELP,$(INSTALLROOT)/lib)
- InstallProgram($(XWAIS), $(BINDIR))
- InstallProgram($(XWAISQ), $(BINDIR))
-
- CppFileTarget(Xwais.ad,Xwais.raw,-DINSTALLROOT=$(INSTALLROOT) -DBINDIR=$(BINDIR) -DXAPPLOADDIR=$(XAPPLOADDIR),Xwais.raw)
-
- $(TOP)/ui/question.o $(TOP)/ui/document.o $(TOP)/ui/wais-ui.o $(TOP)/ui/source.o:
- cd ../ui; $(MAKE) $@
-
- $(IR_LIB):
- (cd $(TOP)/ir;make ${IR_LIB})
-
- $(PROTOCOL_LIB):
- (cd $(TOP)/ir;make ${PROTOCOL_LIB})
-
- clean::
- $(RM) Xwais Xwais.ad Makefile.bak *%
-
- veryclean:: clean
- $(RM) xwais xwaisq
-
- DependTarget()
-
- #ifdef SYSVREGEXP
- $(REGEXPLIB):
- cd ../regexp; $(MAKE)
- #endif
-
- #ifdef LOCAL_SEARCH
- $(LOCALLIB):
- cd ../ir; $(MAKE)
- #endif
-