XCOMM  -*- makefile -*-  
XCOMM ------------------------------------------------------------------
XCOMM  copyright (c) 1995 thomas harrer, ipvr stuttgart.
XCOMM ------------------------------------------------------------------
XCOMM
XCOMM  Imakefile for xmhelp standalone.
XCOMM
XCOMM ------------------------------------------------------------------
XCOMM  $Id: Imakefile,v 1.6 1995/06/28 13:01:21 thomas Exp $
XCOMM ------------------------------------------------------------------
XCOMM
XCOMM  file:		Imakefile
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 ------------------------------------------------------------------

XCOMM ------------------------------------------------------------------
XCOMM  Additional Definitions
XCOMM ------------------------------------------------------------------

    HELPLIB = -L../libhelp -lhelp  
    HTMLWLIB = -L../libhtmlw -lhtmlw
    BUTTFACELIB = -L../libButtFace -lButtFace
    XPMLIB = -L../libXpm -lXpm 

XCOMM Wrote $(COPT) to DEFINES because ld does not find static
XCOMM Motif libs on my machine.

    COPT = -g -O
    LIBS = 
    INCS = 

XCOMM -------------------------------------------------------------------- #
XCOMM  system dependencies
XCOMM -------------------------------------------------------------------- #

#if defined(SunArchitecture) 
#if OSMajorVersion > 4
    SYSINCS = -I/usr/ucbinclude
    SYSLIBS = -lsocket -lgen
#endif
#endif

#if defined(HPArchitecture)
    CC = c89
    SYSDEFS = -D_HPUX_SOURCE
    SYSINCS = -I/usr/include/Motif1.2 
    MOTIFLIBDIR = -L/usr/lib/Motif1.2
#endif

XCOMM -------------------------------------------------------------------- #
XCOMM  definitions
XCOMM -------------------------------------------------------------------- #

       HELPINC = -I../libhelp
  LOCALINCLUDE = -I/usr/local/include -I/usr/local/X11R5/include 
   INCLUDEDIRS = $(SYSINCS) $(HELPINC) $(LOCALINCLUDE) $(INCS)
       DEFINES = $(SYSDEFS) $(COPT) $(INCLUDEDIRS)
   CDEBUGFLAGS = 

          SRCS = xmhelp.c
        HEADER = xmhelp.h
 PRIVATEHEADER = 
     RESOURCES = 
     IMAKEFILE = Imakefile

          OBJS = xmhelp.o
     DISTFILES = $(SRCS) $(HEADER) $(RESOURCES) $(IMAKEFILE)
            RM = rm -f
        VMDIST = vmdist
        GNUTAR = tar
          GZIP = gzip

   LIBHELPLIBS = $(HELPLIB) $(HTMLWLIB) $(BUTTFACELIB) $(XPMLIB) 

       LIBLIBS = -L/usr/local/lib $(LIBHELPLIBS)
      MOTIFLIB = $(MOTIFLIBDIR) -lXm

       LIBLIBS = $(LIBSDIR) $(HELPLIB) $(HTMLWLIB) $(BUTTFACELIB) $(XPMLIB) 
      ALLXLIBS = $(MOTIFLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
       ADDLIBS = $(SYSLIBS) $(LIBS)

SYS_LIBRARIES = $(LIBLIBS) $(ALLXLIBS) $(ADDLIBS)
EXTRA_LIBRARIES = 

XCOMM ------------------------------------------------------------------
XCOMM  Insert Macros
XCOMM ------------------------------------------------------------------

ComplexProgramTarget(xmhelp)
