# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.72 92/09/14 11:44:22 rws Exp $
#
# The cpp used on this machine replaces all newlines and multiple tabs and
# spaces in a macro expansion with a single space.  Imake tries to compensate
# for this, but is not always successful.
#

# -------------------------------------------------------------------------
# Makefile generated from "Imake.tmpl" and <Imakefile>
# $XConsortium: Imake.tmpl,v 1.158 92/09/03 19:54:25 rws Exp $
#
# Platform-specific parameters may be set in the appropriate <vendor>.cf
# configuration files.  Site-specific parameters should be set in the file
# site.def.  Full rebuilds are recommended if any parameters are changed.
#
# If your C preprocessor does not define any unique symbols, you will need
# to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
# "make World" the first time).
#

# -------------------------------------------------------------------------
# site-specific configuration parameters that need to come before
# the platform-specific parameters - edit site.def to change

# site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $

# -------------------------------------------------------------------------
# platform-specific configuration parameters - edit sun.cf to change

#
# platform:  $XConsortium: sun.cf,v 1.77 92/05/29 18:37:21 rws Exp $

# operating system:  SunOS 5.0

.INIT: Makefile
REVCTLARCHFILE = SCCS/s.Imakefile
REVCTLCMD = sccs get

# $XConsortium: sv4Lib.rules,v 1.8 91/07/19 15:38:53 rws Exp $

# -------------------------------------------------------------------------
# site-specific configuration parameters that go after
# the platform-specific parameters - edit site.def to change

# site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $

            SHELL = /bin/sh

              TOP = .
      CURRENT_DIR = .

               AR = ar cq
  BOOTSTRAPCFLAGS =
               CC = cc
               AS = as

         COMPRESS = compress
              CPP = /usr/ccs/lib/cpp $(STD_CPP_DEFINES)
    PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
          INSTALL = install
               LD = ld
              LEX = lex
             YACC = yacc
             LINT = lint
      LINTLIBFLAG = -o
         LINTOPTS = -ax
               LN = ln -s
             MAKE = make
               MV = mv
               CP = cp

               RM = rm -f
            TROFF = troff -Tpost -t
         MSMACROS = -ms
              TBL = tbl
              EQN = eqn
     STD_INCLUDES =
  STD_CPP_DEFINES = -DSVR4 -DSYSV
      STD_DEFINES = -DSVR4 -DSYSV
 EXTRA_LOAD_FLAGS =
  EXTRA_LDOPTIONS = -R$(LD_RUN_PATH):/usr/openwin/lib
  EXTRA_LIBRARIES = -lsocket -lnsl
             TAGS = ctags

    SHAREDCODEDEF =
         SHLIBDEF =

    PROTO_DEFINES =

     INSTPGMFLAGS =

     INSTBINFLAGS = -m 0755
     INSTUIDFLAGS = -m 4755
     INSTLIBFLAGS = -m 0644
     INSTINCFLAGS = -m 0444
     INSTMANFLAGS = -m 0444
     INSTDATFLAGS = -m 0444
    INSTKMEMFLAGS = -m 4755

      PROJECTROOT = $(OPENWINHOME)
      DESTDIR =

     TOP_INCLUDES = -I$(INCROOT)

      CDEBUGFLAGS = -O -xF
        CCOPTIONS = -DSYSV -DSVR4

      ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
	  CCFLAGS = $(CDEBUGFLAGS) $(CCCOPTIONS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)

           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(EXTRA_LDOPTIONS) $(LOCAL_LDFLAGS) -L$(USRLIBDIR)

   LDCOMBINEFLAGS = -r
      DEPENDFLAGS =

        MACROFILE = sun.cf
           RM_CMD = $(RM) mapfile *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut *.O

    IMAKE_DEFINES =

         IRULESRC = $(CONFIGDIR)
        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)

     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
			$(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
			$(IRULESRC)/$(MACROFILE)  \
			$(EXTRA_ICONFIGFILES)

# -------------------------------------------------------------------------
# X Window System Build Parameters
# $XConsortium: Project.tmpl,v 1.152 92/08/10 17:47:45 eswu Exp $

# -------------------------------------------------------------------------
# X Window System make variables; this need to be coordinated with rules

          PATHSEP = /
        USRLIBDIR = $(OPENWINHOME)/lib
         SHLIBDIR = $(OPENWINHOME)/lib
           BINDIR = $(OPENWINHOME)/bin
          DEMODIR = $(OPENWINHOME)/demo
          INCROOT = $(OPENWINHOME)/include
     BUILDINCROOT = $(TOP)
      BUILDINCDIR = $(BUILDINCROOT)/X11
      BUILDINCTOP = ..
           INCDIR = $(INCROOT)/X11
           ADMDIR = /usr/adm
           LIBDIR = $(USRLIBDIR)/X11
        CONFIGDIR = /usr/openwin/lib/config
       LINTLIBDIR = $(USRLIBDIR)/lint

          FONTDIR = $(LIBDIR)/fonts
         XINITDIR = $(LIBDIR)/xinit
           XDMDIR = $(LIBDIR)/xdm
           TWMDIR = $(LIBDIR)/twm
          MANPATH = $(OPENWINHOME)/man
    MANSOURCEPATH = $(MANPATH)/man
        MANSUFFIX = n
     LIBMANSUFFIX = 3
           MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
        LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
           NLSDIR = $(LIBDIR)/nls
        PEXAPIDIR = $(LIBDIR)/PEX
      XAPPLOADDIR = $(LIBDIR)/app-defaults
       FONTCFLAGS = -t

     INSTAPPFLAGS = $(INSTDATFLAGS)

            IMAKE = imake
           DEPEND = makedepend
              RGB = rgb

            FONTC = bdftopcf

        MKFONTDIR = mkfontdir
        MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier

        CONFIGSRC = $(TOP)/config
       DOCUTILSRC = $(TOP)/doc/util
        CLIENTSRC = $(TOP)/clients
          DEMOSRC = $(TOP)/demos
           LIBSRC = $(TOP)/lib
          FONTSRC = $(TOP)/../../../lib/libfont
       INCLUDESRC = $(TOP)/X11
        SERVERSRC = $(TOP)/server
          DDXSRC  = $(SERVERSRC)/ddx
          UTILSRC = $(TOP)/util
        SCRIPTSRC = $(UTILSRC)/scripts
       EXAMPLESRC = $(TOP)/examples
       CONTRIBSRC = $(TOP)/../contrib
           DOCSRC = $(TOP)/doc
           RGBSRC = $(TOP)/rgb
        DEPENDSRC = $(UTILSRC)/makedepend
         IMAKESRC = $(CONFIGSRC)
         XAUTHSRC = $(LIBSRC)/Xau
          XLIBSRC = $(LIBSRC)/X
           XMUSRC = $(LIBSRC)/Xmu
       TOOLKITSRC = $(LIBSRC)/Xt
       AWIDGETSRC = $(LIBSRC)/Xaw
       OLDXLIBSRC = $(LIBSRC)/oldX
      XDMCPLIBSRC = $(LIBSRC)/Xdmcp

      BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf

     MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
         FSLIBSRC = $(FONTSRC)/lib/fs
    FONTSERVERSRC = $(FONTSRC)/server
     EXTENSIONSRC = $(TOP)/extensions
         XILIBSRC = $(TOP)/../../../lib/libXinput
      XTESTLIBSRC = $(EXTENSIONSRC)/lib/xtest
        PEXLIBSRC = $(EXTENSIONSRC)/lib/PEXlib
      PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
	  DGALIBSRC = $(EXTENSIONSRC)/lib/dga

# $XConsortium: sv4Lib.tmpl,v 1.8 92/06/28 17:43:23 rws Exp $

       SERVERETC = $(OPENWINHOME)/server/etc

       SERVERLIB = $(OPENWINHOME)/server/lib

   SERVERMODULES = $(OPENWINHOME)/server/modules

SHLIBLDFLAGS = -G -z text -M mapfile
PICFLAGS = -K PIC
MAPFILE = mapfile

  DEPEXTENSIONLIB =
     EXTENSIONLIB = -lXext

          DEPXLIB = $(DEPEXTENSIONLIB)
         XLIBONLY = -lX11
             XLIB = $(EXTENSIONLIB) $(XLIBONLY)

        DEPXMULIB =
       XMULIBONLY = -lXmu
           XMULIB = $(XMULIBONLY) -z nodefs

       DEPOLDXLIB =
          OLDXLIB = -loldX

      DEPXTOOLLIB =
         XTOOLLIB = -lXt

        DEPXAWLIB =
           XAWLIB = -lXaw

        DEPXILIB =
           XILIB = -lXi

        DEPXTESTLIB =
           XTESTLIB = -lXtst

        DEPPEXLIB =
         PEXLIB = -lPEX5

        DEPDGALIB =
           DGALIB = -ldga

        SOXLIBREV = 5.0
          SOXTREV = 5.0
         SOXAWREV = 5.0
        SOOLDXREV = 5.0
         SOXMUREV = 5.0
        SOXEXTREV = 5.0
      SOXINPUTREV = 5.0
       SOXTESTREV = 1.0
       SOXTRAPREV = 1.0
         SOPEXREV = 1.0
	 SODPSREV = 5
	 SODGAREV = 1

      DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
         XAUTHLIB =  -lXau
      DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
         XDMCPLIB =  -lXdmcp

        DEPPHIGSLIB = $(USRLIBDIR)/libphigs.a
           PHIGSLIB =  -lphigs

       DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
          XBSDLIB =  -lXbsd

 LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln
         LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln
          LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln
        LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln
          LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln
           LINTXI = $(LINTLIBDIR)/llib-lXi.ln
          LINTPEX = $(LINTLIBDIR)/llib-lPEX5.ln
        LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln
		LINTDGA = $(LINTLIBDIR)/llib-ldga.ln

          DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)

         DEPLIBS1 = $(DEPLIBS)
         DEPLIBS2 = $(DEPLIBS)
         DEPLIBS3 = $(DEPLIBS)

# -------------------------------------------------------------------------
# Imake rules for building libraries, programs, scripts, and data files
# rules:  $XConsortium: Imake.rules,v 1.129 92/05/29 17:01:19 rws Exp $

# -------------------------------------------------------------------------
# start of Imakefile

# **********************************************************************
#
#             Imakefile for XAnim Rev 2.70.4 Beta
#
# **********************************************************************
#  Readme Readme Readme Readme Readme Readme Readme Readme Readme Readme
# **********************************************************************
#
#  As you may have noticed by now, X11R6 wants #'s used instead of #
#  as the comment delimiter. The defines at the top of this file should
#  cover you if your Imake stuff doesn't have it defined.
#
#  I've tried to organized and partition this Makefile so it's easier
#  to configure. Feedback is appreciated.
#
#  Goto each Section and configure, comment, uncomment the Defines
#  as necessary.  Some parts might have you search for a NOTE_* later
#  on in the Makefile and do something special there.
#
#
#  Index of Sections
#  ---------------    -----------------------------------------------
#  -- Section II    - Compiler and Optimization Flags.
#  -- Section III   - Video Defines/Libs (Leave Blank for Now).
#  -- Section IV.a  - X11/OpenWindow Libs and Includes Directories.
#  -- Section IV.b  - X11R6 specific libraries.
#  -- Section V     - RemoteControl X11 Widget Selection.
#  -- Section VI    - Audio Defines and Libraries.
#  -- Section VII   - Machine Specific Defines and Libs(and Misc stuff)
#  ----------------   -----------------------------------------------
#
#  Mark Podlipec - podlipec@baynetworks.com
#                - podlipec@wellfleet.com
#                - podlipec@shell.portal.com
#
# ********************

# **********************************************************************
# -- Section I    - NOT USED IN IMAKEFILE
# **********************************************************************

# **********************************************************************
# -- Section II
# -- Choose your favorite compiler and optimization flags.
# -- NOT NEEDED WITH Imake.  It should be set up correctly for you.
# **********************************************************************
#
# ********************

# **********************************************************************
# -- Section III
# -- Video Support Defines  (LEAVE BLANK FOR NOW)
# -- See the files "cinepak.readme" and "indeo.readme". Latest files
# -- always available in the /pub/podlipec directory on ftp.portal.com
# **********************************************************************
# =========
XA_VIDEO_DEFS = -DXA_CINEPAK -DXA_INDEO
XA_VIDEO_LIBS = xa2.0_cvid_sol86.o xa2.0_iv32_sol86.o
XA_VIDEO_INCS =
XA_VIDEO_DEPS =
#
# ********************

# **********************************************************************
# -- Section IV.a
# -- X11/Openwindow Specific Defines
#
# -- NOT NEEDED WITH Imake. That's the whole purpose of xmkmf.
# **********************************************************************
#
# ********************

# **********************************************************************
# -- Section IV.b
# -- X11R6 Specific libraries.
#
# -- NOT NEEDED WITH Imake. That's the whole purpose of xmkmf.
# -- NOTE: apparently some systems have a mmkmf for Motif instead
# --       of the normal xmkmf. SGI sometimes does this. In this
# --       case the XA_REMOTE* defs should be Motif as well.
# **********************************************************************
#
# ********************

# **********************************************************************
# -- Section V
# -- Remote Control Widget Defines. There are really on three options
# -- with XAnim:
# --     Athena       Default with X11
# --     Athena 3D    Modified Athena widgets for 3D appearance.
# --     Motif        Commericial alternative to the Athena Widgets.
#
# NOTE: If you DON'T want the Remote Control Window, you can either
# comment out ALL XA_REMOTE_* defines or set them to nothing.
# **********************************************************************
#
# -- This is if you DON'T want the Remote Control Window.
# XA_REMOTE_DEFS =
# XA_REMOTE_LIBS =
# XA_REMOTE_DEP_LIBS =
#
# -- I've gotten a lot of email about problems because of Widgets...
#                       SO
# -- 0 WIDGETS, 0 SPECIAL LIBRARIES, 0 SPECIAL INCLUDES,
# -- JUST A 3D REMOTE WITH REALLY COOL BUTTONS(tongue in cheek)
#
XA_REMOTE_DEFS = -DXA_PETUNIA
XA_REMOTE_LIBS =
XA_REMOTE_DEP_LIBS =
#
# NOTE: Petunia is not yet tested on 16/24 bit displays.
# NOTE: In the near future I will no longer be supporting Motif or Athena
#       Remote Controls.
#
# -- Athena Widgets (These should be present by default if you have X11)
# XA_REMOTE_DEFS = -DXA_ATHENA
# XA_REMOTE_LIBS = $(XAWLIB) $(XMULIB)
# XA_REMOTE_DEP_LIBS = $(DEPXAWLIB) $(DEPXMULIB)
#
# -- 3D Athena Widgets( Only use these if you know that someone
# --                    went out, downloaded, compiled and installed
# --                    these on your machine :^).
# XA_REMOTE_DEFS = -DXA_ATHENA
# XA_REMOTE_LIBS = $(XAW3DLIB) $(XMULIB)
# XA_REMOTE_DEP_LIBS = $(DEPXAW3DLIB) $(DEPXMULIB)
#
# -- Motif Widgets (Again only use these if you know for a fact, that the
#                   Motif libraries and includes are present on your system,
#                   either because they came bundled with the machine or
#                   because someone specifically purchased and installed
#                   them on your machine).
#
# -- Also on some machines you need to use "mmkmf" instead of "xmkmf"
#    This is true sometimes of SGI machines.
#
# XA_REMOTE_DEFS = -DXA_MOTIF -D_NO_PROTO
# XA_REMOTE_LIBS = $(XMLIB)
# XA_REMOTE_DEP_LIBS = $(DEPXMLIB)
#
# ********************

# **********************************************************************
# -- Section VI
# -- Audio Defines
#
# NOTE: If your machine doesn't have audio OR isn't supported yet then
#       comment out ALL of the XA_AUDIO_* defines and you can still compile
#       XAnim for just video.  Setting the XA_AUDIO_* to nothing has the
#       same affect.
#
# NOTE: Some machine will have to add -DXA_SELECT to the XA_AUDIO_DEFS.
#       let me know if you find this to be the case.
# **********************************************************************
#
# -- You don't have OR don't want Audio support ---------------------------
# XA_AUDIO_DEFS =
#
# -- Sun Sparcs -----------------------------------------------------------
XA_AUDIO_DEFS = -DXA_SPARC_AUDIO
#
# NOTE: Imakefile should add the -DSVR4 to Sun Solaris machines, if not
#       use the following:
# -- Sun Sparcs running Solaris/SunOS 5.x ---------------------------------
# XA_AUDIO_DEFS = -DXA_SPARC_AUDIO -DSVR4
#
# -- S/6000 - AIX 4.1 (3.2.5??) -------------------------------------------
# XA_AUDIO_DEFS = -DXA_AIX_AUDIO -DXA_SELECT
#
# -- DEC Multimedia Services Support --------------------------------------
# XA_AUDIO_DEFS = -DXA_MMS_AUDIO
# XA_AUDIO_LIBS = -lmme
#
# -- NEC EWS Workstations -------------------------------------------------
# XA_AUDIO_DEFS = -DXA_EWS_AUDIO
#
# -- SONY Workstations NEWS-5000 NEWS-OS 4.2 ------------------------------
# XA_AUDIO_DEFS = -DXA_SONY_AUDIO
#
# -- NetBSD-current (as of 30/April 1995)----------------------------------
# XA_AUDIO_DEFS = -DXA_NetBSD_AUDIO
#
# -- QNX 4.2 PC's ---------------------------------------------------------
# XA_AUDIO_DEFS = -DXA_LINUX_AUDIO -DXA_LINUX_NEWER_SND -DXA_SELECT
# XA_MACH_LIBS = -lc
#
# -- Linux PC's with OLD Rev sound drivers --------------------------------
# XA_AUDIO_DEFS = -DXA_LINUX_AUDIO
# XA_MACH_LIBS = -lc
#
# -- Linux PC's with NEWER Rev sound drivers(Rev 2.5 and up) --------------
# XA_AUDIO_DEFS = -DXA_LINUX_AUDIO -DXA_LINUX_NEWER_SND
# XA_MACH_LIBS = -lc
#
# -- Also FreeBSD, and BSDI with SBlast-BSD-1.5 (development stages)-------
# XA_AUDIO_DEFS = -DXA_LINUX_AUDIO -DXA_LINUX_NEWER_SND
# XA_AUDIO_LIBS = -lc
#
# -- SGI Indigo -----------------------------------------------------------
# XA_AUDIO_DEFS = -DXA_SGI_AUDIO
# XA_AUDIO_LIBS = -laudio
#
# -- HP 9000/700 Direct access to Audio Device-----------------------------
# -- This is a direct access to the HP's audio device and works a little
# -- better than going through the Aserver(less levels of indirection).
# -- Also don't need to become superuser to configure your machine for
# -- Aserver.
# XA_AUDIO_DEFS = -DXA_HPDEV_AUDIO
# XA_AUDIO_LIBS =
#
# -- HP 9000/700 Use Upper Level Audio Layers--Requires Aserver------------
# -- This isn't well developed yet(haven't had enough time on an HP yet).
# -- Plus there's a delay between when XAnim sends the audio and when it
# -- get's played that prevents audio/video syncing. There is a patch to
# -- the HP's audio libraries that helps alleviate this. I haven't tried
# -- it yet. Hopefully get a chance to before summer 96 is over.
# XA_AUDIO_DEFS = -DXA_HP_AUDIO
# XA_AUDIO_LIBS = -lAlib
#
# -- AF (AudioFile) Support -----------------------------------------------
# -- You need to indicate where the AF libraries libAFUtil.a and libAF.a
# -- are located. Typically this is /usr/local/lib, but not always. Talk
# -- to the person who installed them on your machine to find out where
# -- they were put.  Same with the AF/include directory.
#
# -- NOTE: SOME VENDORS have an a library called AudioFile, AFile or AF
# -- that has to do with audio file formats and is NOT the same thing as
# -- AudioFile above. Again, talk to the person who installed AudioFile
# -- on your system. Otherwise, assume you don't have it.
#
# XA_AUDIO_DEFS = -DXA_AF_AUDIO
# XA_AUDIO_LIBS = -L/usr/local/lib -lAFUtil -lAF
# XA_AUDIO_INCS = -I/usr/local/include
#
# -- NAS (Network Audio System) Support -----------------------------------
# -- You need to indicate where the NAS library libaudio.a is located.
# -- Typically this is /usr/local/lib, but not always.  Talk to the
# -- person who installed them on your machine to find out where they
# -- were put. Otherwise, assume you don't have NAS installed.
# -- Same with the /usr/local/include/audio directory.
#
# XA_AUDIO_DEFS = -DXA_NAS_AUDIO
# XA_AUDIO_LIBS = -L/usr/local/lib/audio -laudio
# XA_AUDIO_INCS = -I/usr/local/include/audio
#
# NOTE: /pain/audio is just where I keep all my audio stuff and is
# just here for my convenience. (pain because it died once on me already :)
# XA_AUDIO_DEFS = -DXA_NAS_AUDIO
# XA_AUDIO_LIBS = -L/pain/audio/nas/lib/audio -laudio
# XA_AUDIO_INCS = -I/pain/audio/nas/usr/include
#
# ********************

# **********************************************************************
# -- Section VII
# Machine Specific Defines and Libs
# **********************************************************************
#
# -- Sun Sparc running SunOS 4.x and OpenWindows --------------------------
# -- Probably should be using Makefile.unx due to missing symbols
# -- in the shared Xmu library and a need to list some libraries
# -- twice on the linker command line.
#
# -- Some Revs of Sun Solaris Machines need the following -----------------
# XA_MACH_LIBS = -lsocket -lnsl -lgen
#
# -- HP machines ----------------------------------------------------------
# -- NEED this to increase the macro symbol table(default is 128000).
# XA_MACH_DEFS = -Wp,-H150000
#
# -- PC DOS Machines running Quarterdeck's DESQview X----------------------
# XA_MACH_DEFS  = -DMSDOS
#
# -- i486 box Interactive UNIX V2.2.1 -------------------------------------
# -- might need to uncomment out the define below:
# XA_MACH_LIB = -linet
#
# -- IBM AIX --------------------------------------------------------------
# These machines don't have the X11 Shared memory extension.
# See  NOTE_6 below(comment out the XA_SHARED define).
#
#
# ---- Misc Defines for various machines -----------------------------------
#
#   -- NO_INSTALL_CMAP prevents XAnim from specifically installing a cmap.
#   --  this causes problems on some PC versions of X11
# XA_CMAP = -DNO_INSTALL_CMAP
#
#   -- XA_XTPOINTER typedefs XtPointer as void*  if your system doesn't
#   -- typedef it already. (X11R4 or below might need this)
# XA_XTPTR = -DXA_XTPOINTER
#
#   -- X11 Shared Memory
#   -- Allow use of shared memory if specified on cmd line. Comment this
#   -- out if you get compiler errors about not finding XShm.h or the
#   -- following symbols(XShmCreateImage, XShmAttach, XShmDetach,
#   -- XShmPutImage,etc).
#   -- NOTE_6: IBM AIX machines need to comment this out UNLESS YOU HAVE
#   --        SPECIFICALLY installed the Xshm extension on your AIX machine.
XA_SHARED = -DXSHM
#
#   -- X11 Multiple Buffers
#   -- Allow use of hardware/software double buffering in the server, if
#   -- specified on cmd line. Comment this out if you get compiler errors
#   -- about not finding multibuf.h or the
#   -- following symbols(XmbufDisplayBuffers, XmbufQueryExtension,
#   --  XmbufCreateBuffers).
#   -- NOTE_7: HP-UX machines need to comment this out.
# XA_MULTIBUF = -DXMBUF
#
# ********************

# **********************************************************************
# END OF SECTIONS - No need to look below unless a NOTE told you to.
# **********************************************************************
#
XA_MISC_DEFS = $(XA_CMAP) $(XA_XTPTR) $(XA_SHARED) $(XA_MULTIBUF) $(XA_MACH_DEFS)
#

# **********************************************************************

DEFINES = $(XA_MISC_DEFS) $(XA_VIDEO_DEFS) $(XA_AUDIO_DEFS) $(XA_REMOTE_DEFS)
XA_LIBS = $(XA_X11R6_LIBS) $(XA_MACH_LIBS) $(XA_VIDEO_LIBS) $(XA_AUDIO_LIBS)
XA_INCS = $(INCLUDE) $(XA_VIDEO_INCS) $(XA_AUDIO_INCS)

PROGRAMS = xanim

INCLUDES = -I$(INCDIR) $(XA_INCS)

   LIBS1 = $(XA_LIBS) $(EXTENSIONLIB) $(XA_REMOTE_LIBS) $(XTOOLLIB) \
		$(XLIB) -lm
DEPLIBS1 = $(DEPEXTENSIONLIB) $(XA_REMOTE_DEP_LIBS) $(DEPXTOOLLIB) \
		$(DEPXLIB)
# xa_pfx.c temporarily removed

SRCS1 = xanim.c xa_show.c xa_x11.c xa_fli.c xa_iff.c  \
	xa_gif.c xa_txt.c unpacker.c xa_utils.c xa_act.c \
	xa_set.c xa_cmap.c xa_rle.c xa_wav.c xa_au.c \
	xa_avi.c xa_qt.c xa_qt_decs.c xa_audio.c xa_ipc.c xa_color.c \
	xa_jpg.c xa_mpg.c xa_dl.c xa_jmov.c xa_movi.c \
	xa_replay.c xa_dumfx.c xa_acodec.c xa_input.c xa_formats.c

OBJS1 = xanim.o xa_show.o xa_x11.o xa_fli.o xa_iff.o  \
	xa_gif.o xa_txt.o unpacker.o xa_utils.o xa_act.o \
	xa_set.o xa_cmap.o xa_rle.o xa_wav.o xa_au.o \
	xa_avi.o xa_qt.o xa_qt_decs.o xa_audio.o xa_ipc.o xa_color.o \
	xa_jpg.o xa_mpg.o xa_dl.o xa_jmov.o xa_movi.o \
	xa_replay.o xa_dumfx.o xa_acodec.o xa_input.o xa_formats.o

 OBJS = $(OBJS1) $(OBJS2) $(OBJS3)
 SRCS = $(SRCS1) $(SRCS2) $(SRCS3)

all:: $(PROGRAMS)

xanim: $(OBJS1) $(DEPLIBS1)
	$(RM) $@
	$(CC) -o $@ $(LDOPTIONS) $(OBJS1)  $(LIBS1) $(LDLIBS)  $(OTHER_LIBS)  $(EXTRA_LOAD_FLAGS)

install:: $(DESTDIR)$(BINDIR)/xanim
$(DESTDIR)$(BINDIR)/xanim: xanim
	@if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
	$(INSTALL) -c $(INSTPGMFLAGS)  xanim $(DESTDIR)$(BINDIR)

install.man:: xanim.man
	@if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
	$(INSTALL) -c $(INSTMANFLAGS) xanim.man $(DESTDIR)$(MANDIR)/xanim.$(MANSUFFIX)

depend:: $(SRCS) $(HEADERS)
	$(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
dependlocal:: $(SRCS) $(HEADERS)
	$(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)

lint:
	$(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
lint1:
	$(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)

clean::
	$(RM) $(PROGRAMS)

xanim.o: xanim.h xa_config.h xa_x11.h Imakefile
unpacker.o: xanim.h
xa_acodec.o: xanim.h
xa_act.o: xanim.h xa_config.h
xa_au.o: xanim.h xa_config.h
xa_audio.o: xanim.h xa_config.h xa_audio.h Imakefile
xa_avi.o: xanim.h xa_config.h xa_xmpg.h xa_codecs.h xa_avi.h
xa_cmap.o: xanim.h xa_config.h
xa_color.o: xanim.h xa_config.h xa_color.h
xa_dl.o: xanim.h xa_config.h xa_dl.h
xa_dumfx.o: xanim.h xa_config.h
xa_fli.o: xanim.h xa_config.h xa_fli.h
xa_formats.o: xanim.h
xa_gif.o: xanim.h xa_config.h xa_gif.h
xa_iff.o: xanim.h xa_config.h xa_iff.h
xa_input.o: xanim.h
xa_ipc.o: xanim.h xa_config.h xa_ipc.h Imakefile
xa_jmov.o: xanim.h xa_config.h xa_jmov.h
xa_jpg.o: xanim.h xa_config.h xa_jpg.h
xa_movi.o: xanim.h xa_movi.h
xa_mpg.o: xanim.h xa_config.h xa_mpg.h xa_xmpg.h xa_jpg.c
xa_qt.o: xanim.h xa_config.h xa_qt.h xa_codecs.h
xa_qt_decs.o: xanim.h xa_config.h xa_qt.h
xa_replay.o: xanim.h xa_config.h xa_replay.h
xa_rle.o: xanim.h xa_config.h xa_rle.h
xa_set.o: xanim.h xa_config.h xa_set.h xa_iff.h
xa_show.o: xanim.h xa_config.h Imakefile
xa_txt.o: xanim.h xa_config.h xa_gif.h
xa_utils.o: xanim.h xa_config.h
xa_wav.o: xanim.h xa_config.h xa_avi.h
xa_x11.o: xanim.h xa_config.h xa_x11.h Imakefile

# -------------------------------------------------------------------------
# common rules for all Makefiles - do not edit

emptyrule::

dependlocal::
includes:: $(HEADERS) $(OTHERFILES)

clean::
	$(RM_CMD) "#"*

Makefile:: Imakefile
	-@if [ -f Makefile ]; then set -x; \
	$(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
	else exit 0; fi
	$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
	$(MAKE) $(MFLAGS) dependlocal

tags::
	$(TAGS) -w *.[ch]
	$(TAGS) -xw *.[ch] > TAGS

# -------------------------------------------------------------------------
# empty rules for directories that do not have SUBDIRS - do not edit

install::
	@echo "install in $(CURRENT_DIR) done"

install.man::
	@echo "install.man in $(CURRENT_DIR) done"

Makefiles::

includes::

# -------------------------------------------------------------------------
# dependencies generated by makedepend

