XCOMM  -*- makefile -*-  
XCOMM --------------------------------------------------------------------
XCOMM  copyright (c) 1995 ipvr stuttgart and thomas harrer
XCOMM --------------------------------------------------------------------
XCOMM
XCOMM  libhelp
XCOMM
XCOMM  a comprehensive hypertext help system for OSF/Motif(tm) applications. 
XCOMM  based on libhtmlw from NCSA Mosaic(tm) version 2.4
XCOMM
XCOMM  written by thomas harrer
XCOMM  e-mail: Thomas.Harrer@rus.uni-stuttgart.de
XCOMM  
XCOMM -------------------------------------------------------------------- #
XCOMM  $Id: Imakefile,v 1.42 1995/06/28 12:59:30 thomas Exp $
XCOMM -------------------------------------------------------------------- #
XCOMM
XCOMM  module:		Imakefile
XCOMM
XCOMM  contents:	Imakefile for libhelp
XCOMM			the help subsystem for diana (and other motif
XCOMM			and probably non-motif applications).
XCOMM
XCOMM  interface:	xmkmf
XCOMM			make depend
XCOMM			make
XCOMM
XCOMM -------------------------------------------------------------------- #
XCOMM  license and copying issues:
XCOMM
XCOMM  this software is free; you can redistribute it and/or modify it 
XCOMM  under terms similar to the gnu general public license (version 1 
XCOMM  or any later version published by the free software foundation). 
XCOMM  see the file Licence for more details.
XCOMM
XCOMM  this program is distributed in the hope that it will be useful,
XCOMM  but without any warranty; without even the implied warranty of
XCOMM  merchantability or fitness for a particular purpose.  
XCOMM -------------------------------------------------------------------- #

           COPT = -O
           INCS = 
           DEFS = 

#if defined(SunArchitecture) 
#if OSMajorVersion > 4
        SUNINCS = -I/usr/ucbinclude
        SUNLIBS = -lgen -lXext
#else
        SUNDEFS = -DNO_MEMMOVE
        SUNLIBS = -lXext
#endif
#endif

#if defined(HPArchitecture)
             CC = c89
         HPDEFS = -D_HPUX_SOURCE
         HPINCS = -I/usr/include/Motif1.2 
       MOTIFLIB = -L/usr/lib/Motif1.2 -lXm
#endif

        SYSINCS = -I/usr/local/X11R5/include $(SUNINCS) $(HPINCS)
        LIBINCS = -I../libXpm -I../libButtFace -I../libhtmlw -I../libcheck
        PICINCS = -I../pixmaps -I./
        ALLINCS = $(INCS) $(SYSINCS) $(PICINCS) $(LIBINCS)
        SYSDEFS = $(SUNDEFS) $(HPDEFS)
        DEFINES = -DMOTIF $(COPT) $(DEFS) $(SYSDEFS) $(ALLINCS) 

    CDEBUGFLAGS = 

           SRCS = help.c imageio.c medcut.c actionarea.c image.c load.c\
                  buffer.c util.c path.c bcache.c contexthelp.c

         HEADER = help.h helpp.h imageio.h language.h version.h \
                  actionarea.h image.h load.h buffer.h util.h path.h \
                  bcache.h contexthelp.h

      IMAKEFILE = Imakefile

           OBJS = medcut.o imageio.o image.o actionarea.o help.o load.o\
                  buffer.o util.o path.o bcache.o contexthelp.o

        LIBHELP = help
        TESTOBJ = thelp.o

          HLIB = libhelp.a
      HTMLWLIB = -L../libhtmlw -lhtmlw
   BUTTFACELIB = -L../libButtFace -lButtFace
        XPMLIB = -L../libXpm -lXpm 
      HELPLIBS = $(LIBSDIR) $(HLIB) $(HTMLWLIB) $(BUTTFACELIB) $(XPMLIB) 
       SYSLIBS = $(SUNLIBS)

      MOTIFLIB = -lXm
   SYSTEM_LIBS = $(MOTIFLIB) -lXmu -lXt -lX11 $(SYSLIBS) $(ADDLIBS) 

      CHECKLIB = -L../libcheck -lcheck
     THELPLIBS = $(HELPLIBS) $(CHECKLIB) 

XCOMM libhelp.a

NormalLibraryTarget($(LIBHELP),$(OBJS))

XCOMM thelp (only for testing, not distributed)

NormalProgramTarget(thelp,$(TESTOBJ),$(HLIB),$(THELPLIBS),$(SYSTEM_LIBS))

DependTarget()