##
## Imakefile for ebuttons.
##
## There are at most 2 things you may want to do to this Imakefile.
##
##     1) Change the MAX_BUTTONS value
##     2) Add a #define HAVE_XAW3D if you have the 3D Athena widget set.
##     3) Change the path, where the lisp code should be installed
## Terry Jones (terry@santafe.edu), November 18, 1992.
## Santa Fe Institute
## Ulrich Pfeifer (pfeifer@ls6.informatik.uni-dortmund.de), November 25, 1992
## Universitaet Dortmund

#
# 1) The maximum number of buttons.
#
      MAX_BUTTONS = 50
#
# 2) Add a line "#define HAVE_XAW3D", if you have the 3d Athena
#    widgets installed. If in doubt, just do nothing

#
# 3) Change the following path to your environment
#
    EMACSLISPPATH = $(HOME)/lisp

#ifndef HAVE_XAW3D
        ATHENALIB = $(XAWLIB)
    EXTRA_DEFINES = -DMAX_BUTTONS=$(MAX_BUTTONS)
#else
        ATHENALIB = $(3DXAWLIB)
    EXTRA_DEFINES = -DMAX_BUTTONS=$(MAX_BUTTONS) -DHAVE_XAW3D
#endif
    SYS_LIBRARIES = $(ATHENALIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
          DEPLIBS = $(Concat(DEP,ATHENALIB)) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)

      CDEBUGFLAGS = -O

## Nothing below here should change.

all::
depend:: ebuttons.h
SimpleProgramTarget(ebuttons)
InstallManPage(ebuttons,$(MANPATH))
InstallNonExecFile(ebuttons.el,$(EMACSLISPPATH))
InstallAppDefaultsLong(Resources,ebuttons)


ebuttons.h: Imakefile
	./make_ebuttons $(MAX_BUTTONS)

clean::
        $(RM) ebuttons.h



