# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.91 95/01/12 16:15:47 kaleb Exp $

# ----------------------------------------------------------------------
# Makefile generated from "Imake.tmpl"  and <Imakefile>
# $XConsortium: Imake.tmpl,v 1.224 94/12/27 03:57:50 gildea Exp $
#

.SUFFIXES: .i

# $XConsortium: Imake.cf,v 1.19 95/01/05 19:24:32 kaleb Exp $

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

# site:  $XConsortium: site.sample,v 1.9 94/04/08 17:02:06 rws Exp $

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

# platform:  $XConsortium: amiga.cf,v 1.18 95/08/16 13:40:17 ef Exp $

# operating system:  AmigaOS 3.1

# platform:  $XConsortium: amiga.rules,v 1.20 95/08/18 13:40:17 ef Exp $

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

# site:  $XConsortium: site.sample,v 1.9 94/04/08 17:02:06 rws Exp $

# -----------------------------------------------------------------------
# Imake rules for building libraries, programs, scripts, and data files
# rules:  $XConsortium: Imake.rules,v 1.197 94/12/05 19:30:41 gildea Exp $

          PATHSEP = /
            SHELL = /bin/sh

              TOP = .
      CURRENT_DIR = .

            IMAKE = x11:bin/imake
           DEPEND = X11:bin/makedepend
        MKDIRHIER = mkdirhier
        CONFIGSRC = $(TOP)/config
         IMAKESRC = $(CONFIGSRC)/imake
        DEPENDSRC = $(CONFIGSRC)/makedepend
           IXXSRC = $(UNSUPPORTEDSRC)/programs/ixx
              IXX = ixx
         IXXFLAGS = -s BaseObject -m TypeObj -r RequestObj -p Xf
      IXXINCLUDES = -i '<X11/Fresco/enter-scope.h>'

          INCROOT = X11:sasc/include
        USRLIBDIR = X11:lib
         SHLIBDIR = X11:libs
       LINTLIBDIR = $(USRLIBDIR)/lint
          MANPATH = X11:man
    MANSOURCEPATH = X11:man
           MANDIR = X11:man
        LIBMANDIR = X11:man
       FILEMANDIR = X11:man

               AR = oml
  BOOTSTRAPCFLAGS =
               CC = scc
               AS = asm

         COMPRESS = compress
              CPP = cpp  $(STD_CPP_DEFINES)
    PREPROCESSCMD = gcc -E  $(STD_CPP_DEFINES)
          INSTALL = install
     INSTALLFLAGS = -c
               LD = slink
              LEX = lex
           LEXLIB = -ll
             YACC = yacc
           CCYACC = yacc
             LINT = lint
      LINTLIBFLAG = -C
         LINTOPTS = -axz
               LN = makelink
             MAKE = make
               MV = mv
               CP = cp

               RM = rm -f
        MANSUFFIX = man
     LIBMANSUFFIX = man
    FILEMANSUFFIX = man
            TROFF = groff
         MSMACROS = -Wall -mtty-char -Tascii -man
              TBL = gtbl
              EQN = gneqn

            DVIPS = dvips
            LATEX = latex

     STD_INCLUDES = -Iinclude
  STD_CPP_DEFINES = -nostdinc -I. -I/X11/sasc/include -Iinclude -I/include
      STD_DEFINES =
 EXTRA_LOAD_FLAGS = -Llib -LX11:sasc/lib
  EXTRA_LDOPTIONS =
  EXTRA_LIBRARIES = -lunix
             TAGS = ctags

    PROTO_DEFINES =

     INSTPGMFLAGS =

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

      PROJECTROOT = sys:usr/x11

     TOP_INCLUDES = -I$(INCROOT)

      CDEBUGFLAGS =
        CCOPTIONS = -O
        SCOPTIONS = Parms=stack Code=far Data=far Cpu=68020 Saveds MemSize=huge AbsFuncPointer NoStkChk NoWVRet UtilLib OptTime IdLen=63 Ignore=74,85,93,100,154,161,217,304,306,308

      ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(DEFINES)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(THREADS_CFLAGS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES)
         LDPRELIB =
        LDPOSTLIB =
        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(EXTRA_LDOPTIONS) $(THREADS_LDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIB)
     CXXLDOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(EXTRA_LDOPTIONS) $(THREADS_CXXLDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIB)

           LDLIBS = $(LDPOSTLIB) $(THREADS_LIBS) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

           CCLINK = $(CC)

          CXXLINK = $(CXX)

     LDSTRIPFLAGS = -x
   LDCOMBINEFLAGS = -X -r
      DEPENDFLAGS =

        MACROFILE = amiga_unix.cf
           RM_CMD = $(RM)

    IMAKE_DEFINES =

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

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

# ----------------------------------------------------------------------
# X Window System Build Parameters and Rules
# $XConsortium: Project.tmpl,v 1.248 95/01/06 19:12:51 gildea Exp $

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

           BINDIR = X11:bin
     BUILDINCROOT = $(TOP)
      BUILDINCDIR = X11:sasc/include/X11
      BUILDINCTOP = ..
      BUILDLIBDIR = $(TOP)/usrlib
      BUILDLIBTOP = ..
           INCDIR = $(INCROOT)/X11
           ADMDIR = /usr/adm
           LIBDIR = $(USRLIBDIR)/X11

          FONTDIR = $(LIBDIR)/fonts
         XINITDIR = $(LIBDIR)/xinit
           XDMDIR = $(LIBDIR)/xdm
           TWMDIR = $(LIBDIR)/twm
           XSMDIR = $(LIBDIR)/xsm
           NLSDIR = $(LIBDIR)/nls
       XLOCALEDIR = $(LIBDIR)/locale
        PEXAPIDIR = $(LIBDIR)/PEX
      XAPPLOADDIR = $(LIBDIR)/app-defaults
       FONTCFLAGS = -t

     INSTAPPFLAGS = $(INSTDATFLAGS)

              RGB = rgb
            FONTC = bdftopcf
        MKFONTDIR = mkfontdir

       DOCUTILSRC = $(TOP)/doc/util
       XDOCMACROS = $(DOCUTILSRC)/macros.t
       XIDXMACROS = $(DOCUTILSRC)/indexmacros.t
       PROGRAMSRC = $(TOP)/programs
           LIBSRC = $(TOP)/lib
          FONTSRC = $(TOP)/fonts
       INCLUDESRC = $(TOP)/X11
        SERVERSRC = $(TOP)/programs/Xserver
       CONTRIBSRC = $(TOP)/../contrib
   UNSUPPORTEDSRC = $(TOP)/unsupported
           DOCSRC = $(TOP)/doc
           RGBSRC = $(TOP)/programs/rgb
      BDFTOPCFSRC = $(PROGRAMSRC)/bdftopcf
     MKFONTDIRSRC = $(PROGRAMSRC)/mkfontdir
    FONTSERVERSRC = $(PROGRAMSRC)/xfs
       FONTINCSRC = $(TOP)/include/fonts
        EXTINCSRC = $(TOP)/include/extensions
     TRANSCOMMSRC = $(LIBSRC)/xtrans
   TRANS_INCLUDES = -I../xtrans

# $XConsortium: amigaLib.tmpl,v 1.1 95/08/18 18:32:51 ef Exp $

          XLIBSRC = $(LIBSRC)/X11

      DEPXONLYLIB = $(USRLIBDIR)/X11.lib
         XONLYLIB = -lX11

         XLIBONLY = $(XONLYLIB)

             XLIB = $(XONLYLIB)

        CONFIGDIR = $(LIBDIR)/config/cf

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

#  Copyright (c) 1985 by Supoj Sutanthavibul
#  Copyright (c) 1994 by Brian V. Smith
#  Parts Copyright (c) 1991 by Paul King

#  The X Consortium, and any party obtaining a copy of these files from
#  the X Consortium, directly or indirectly, is granted, free of charge, a
#  full and unrestricted irrevocable, world-wide, paid up, royalty-free,
#  nonexclusive right and license to deal in this software and
#  documentation files (the 'Software'), including without limitation the
#  rights to use, copy, modify, merge, publish, distribute, sublicense,
#  and/or sell copies of the Software, and to permit persons who receive
#  copies from any such party to do so, with the only requirement being
#  that this copyright notice remain intact.  This license includes without
#  limitation a license to do the foregoing actions under any patents of
#  the party supplying this software to the X Consortium.

#   NOTE: AS of X11R6 the official comment for Imakefile is the word #

#  Uncomment the following definition for XAWLIB if you want to use
#  the 3d Athena Widget Set (highly recommended!)

#  XAWLIB = -lXaw3d

#  Uncomment the following if needed for DECstations running older X11R4
#  INCROOT=/usr/include/mit

#  Uncomment the following XPM variable if you have the XPM (color pixmap)
#  package and you would like to use the following:
#  USE_XPM will allow import/export of XPM files
#  USE_XPM_ICON uses a color xpm icon for xfig itself (USE_XPM must be
# 	defined if you use USE_XPM_ICON)
#  You need XPM version 3.4c or newer.  This is available from ftp.x.org
#    in /contrib/libraries.

#  XPMDEFINES = -DUSE_XPM -DUSE_XPM_ICON
#  XPMLIBDIR = /usr/lib
#  XPMINCDIR = /usr/include/X11
#  XPMLIB = -L$(XPMLIBDIR) -lXpm

#  If you have installed the jpeg library on your system, uncomment the
#  USEINSTALLEDJPEG variable, change the JPEGLIBDIR variable to the directory
#  where your jpeg library resides and change the JPEGINCDIR to the
#  directory where your jpeg header files (include) reside.
#  You must have version 5b or newer of the jpeg library.
#  If you have not installed the jpeg library leave the #  comment in and
#  set JPEGLIBDIR after the #else to the directory where you have the source
#  for jpeg.

JPEGLIBDIR = lib
JPEGINCDIR = include/jpeg

#  For Solaris: add '-lc' to the LOCAL_LIBRARIES variable in the Imakefile
#  to link with /usr/lib/libc for the directory operations.

#  The Display PostScript code is not supported anymore until some kind
#  user can debug it for me, as I have no access to a server with DPS
#  extensions.  Use Ghostscript for rendering your EPS files.  It gives
#  a color image on the xfig canvas now anyway.

#  If using an input tablet uncomment the following

#  TABLIB = $(XILIB)
#  USETAB = -DUSE_TAB

#  use (and change) the following if you want the multi-key data base file
#  somewhere other than the standard X11 library directory
#  XFIGLIBDIR =		/usr/local/lib/X11/xfig

#  use this if you want the multi-key data base file in the standard X11 tree
XFIGLIBDIR =		$(LIBDIR)/xfig

DIR_DEFS=		-DXFIGLIBDIR="\"$(XFIGLIBDIR)\""

#  If your system does not have strcasecmp and/or strncasecmp
#  undefine the following two definitions

#  HAVE_NO_STRCASECMP = -DHAVE_NO_STRCASECMP
#  HAVE_NO_STRNCASECMP = -DHAVE_NO_STRNCASECMP

STRDEFINES = $(HAVE_NO_NOSTRSTR) $(HAVE_NO_STRNCASECMP) $(HAVE_NO_STRCASECMP)

#  For the rotated text code:
#    Add one of '-DCACHE_XIMAGES' or '-DCACHE_BITMAPS' to decide what is
#    cached.  If you are converned about memory usage in your X server (e.g.
#    if you are using an X terminal) then you might want to cache Ximages,
#    which reside on the client-side.  On the other hand it is much slower,
#    so you might want to cache bitmaps (which reside in the X server)
#    instead.
#    Add '-DCACHE_SIZE_LIMIT=xxxx' where xxxx is the cache size in kilobytes.
#    A cache size of zero turns caching off.

CACHE = -DCACHE_BITMAPS -DCACHE_SIZE_LIMIT=300

#  For SYSV systems with BSD-style printer command which use lpr instead of
#  lp (SGI is one such machine), add -DBSDLPR to the DEFINES variable
#
#  If you have VERY large objects (e.g. polylines etc) you may want to
#  increase MAXNUMPTS, the maximum number of points that are displayed. The
#  default can be found in w_drawprim.h.  This option may be specified by
#  adding -DMAXNUMPTS=xxxx to the DEFINES line, where xxxx is the maximum
#  number of vertices.

#  remove -DGSBIT from the DEFINES if you DO NOT want to have gs (Ghostscript)
#  generate a preview bitmap for Encapsulated PostScript objects if they
#  do not have one.  If you do use Ghostscript you will need version 2.4 or
#  later, and it must have the 'pcx256' and 'pbmraw' devices compiled in
#  besides any other device drivers you already use with it.
#  See the Ghostscript Makefile for details.

#  Additionally, there is a bug in the pcx driver in Aladdin Ghostscript
#  versions prior to 3.32, which writes an incorrect pcx file for images
#  with odd width (not even).  The following compile-time flag PCXBUG is
#  set to make xfig add one pixel to the width of an odd-width image
#  it reads in the pcx output from Ghostscript.
#  If you have Aladdin Ghostscript 3.32 or newer (which was not released
#  as of this writing) you may comment out PCXBUG and your images will
#  have the proper width.  However, one pixel extra in width should not
#  matter for most imported eps files.

PCXBUG = -DPCXBUG

#  *** You should not have to change anything below this point. ***

DEFINES = $(STRDEFINES) -DGSBIT -DBSDLPR $(XPMDEFINES)

XFIGSRC =	d_arc.c d_arcbox.c d_box.c d_ellipse.c d_picobj.c 		d_intspline.c d_line.c d_regpoly.c d_spline.c d_text.c 		e_addpt.c e_align.c e_arrow.c e_break.c 		e_convert.c e_copy.c e_delete.c e_deletept.c 		e_edit.c e_flip.c e_glue.c e_move.c 		e_movept.c e_rotate.c e_scale.c e_update.c 		f_load.c f_neuclrtab.c f_picobj.c f_read.c f_readold.c 		f_readeps.c f_readxbm.c f_readxpm.c f_readgif.c f_readjpg.c 		f_save.c f_util.c 		f_wrcom.c f_wrjpg.c f_wrgif.c f_wrxbm.c f_wrxpm.c 		main.c mode.c object.c resources.c 		u_bound.c u_create.c u_drag.c u_draw.c 		u_elastic.c u_error.c u_fonts.c u_free.c u_geom.c 		u_list.c u_markers.c u_pan.c u_print.c 		u_redraw.c u_scale.c u_search.c u_translate.c u_undo.c 		w_browse.c w_capture.c 		w_canvas.c w_cmdpanel.c w_color.c w_cursor.c w_dir.c w_drawprim.c 		w_export.c w_file.c w_fontbits.c w_fontpanel.c w_grid.c 		w_icons.c w_indpanel.c w_modepanel.c w_mousefun.c w_msgpanel.c 		w_print.c w_rottext.c w_rulers.c w_setup.c w_util.c w_zoom.c

XFIGOBJ =	d_arc.o d_arcbox.o d_box.o d_ellipse.o d_picobj.o 		d_intspline.o d_line.o d_regpoly.o d_spline.o d_text.o 		e_addpt.o e_align.o e_arrow.o e_break.o 		e_convert.o e_copy.o e_delete.o e_deletept.o 		e_edit.o e_flip.o e_glue.o e_move.o 		e_movept.o e_rotate.o e_scale.o e_update.o 		f_load.o f_neuclrtab.o f_picobj.o f_read.o f_readold.o 		f_readeps.o f_readxbm.o f_readxpm.o f_readgif.o f_readjpg.o 		f_save.o f_util.o 		f_wrcom.o f_wrjpg.o f_wrgif.o f_wrxbm.o f_wrxpm.o 		main.o mode.o object.o resources.o 		u_bound.o u_create.o u_drag.o u_draw.o 		u_elastic.o u_error.o u_fonts.o u_free.o u_geom.o 		u_list.o u_markers.o u_pan.o u_print.o 		u_redraw.o u_scale.o u_search.o u_translate.o u_undo.o 		w_browse.o w_capture.o 		w_canvas.o w_cmdpanel.o w_color.o w_cursor.o w_dir.o w_drawprim.o 		w_export.o w_file.o w_fontbits.o w_fontpanel.o w_grid.o 		w_icons.o w_indpanel.o w_modepanel.o w_mousefun.o w_msgpanel.o 		w_print.o w_rottext.o w_rulers.o w_setup.o w_util.o w_zoom.o

#  Other dependencies should be handled by 'make depend'

MAINDEPFILES =  fig.icon.X patchlevel.h version.h

SRCS = $(XFIGSRC)
OBJS = $(XFIGOBJ)

#EXTRA_INCLUDES = -I$(JPEGINCDIR) -I$(XPMINCDIR)
EXTRA_INCLUDES = -I$(JPEGINCDIR)
DEPLIBS = X11:sasc/lib/X11.lib

LOCAL_LIBRARIES = 	-L$(JPEGLIBDIR) -ljpeg
SYS_LIBRARIES= 		-lm $(DPSLIB) $(XPMLIB) $(TABLIB) -lX11

xfig: $(DEPLIBJPEG)

#  only compile our jpeg if the use does not have one installed

PROGRAM = xfig

all:: xfig

SCOPTIONS:
	-@echo $(SCOPTIONS) > SCOPTIONS

xfig: SCOPTIONS $(OBJS) $(DEPLIBS)
	$(RM) $@
	-@echo $(OBJS) >t:file_list
	$(CCLINK) -o $@ $(LDOPTIONS) with t:file_list $(EXTRA_LOAD_FLAGS) $(LOCAL_LIBRARIES) $(LDLIBS)
	-@rm -f t:file_list

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

install.man:: Doc/xfig.man
	-@if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
	$(TROFF) $(MSMACROS) Doc/xfig.man > t:Doc/xfig.man
	$(INSTALL) -c $(INSTMANFLAGS) t:Doc/xfig.man $(DESTDIR)$(MANDIR)/xfig.man

depend::
	$(DEPEND) $(DEPENDFLAGS) -- $(ALLDEFINES) $(DEPEND_DEFINES) -- $(SRCS)

clean::
	$(RM) xfig

install::
	@case '${MFLAGS}' in *[i]*) set +e;; esac;
	- @for i in $(XFIGLIBDIR); do if [ -d $(DESTDIR)$$i ]; then \
	set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i); fi \
	done

install:: CompKeyDB
	$(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) CompKeyDB $(DESTDIR)$(XFIGLIBDIR)

install:: Fig.ad
	-@if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)); fi
	$(INSTALL) $(INSTALLFLAGS) $(INSTAPPFLAGS) Fig.ad $(DESTDIR)$(XAPPLOADDIR)/Fig

install:: Fig-color.ad
	-@if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)); fi
	$(INSTALL) $(INSTALLFLAGS) $(INSTAPPFLAGS) Fig-color.ad $(DESTDIR)$(XAPPLOADDIR)/Fig-color

main.o:	$(MAINDEPFILES)
	$(RM) $@
	$(CC) -c $(CFLAGS) $(USETAB) $*.c

f_readeps.o:
	$(RM) $@
	$(CC) -c $(CFLAGS) $(PCXBUG) $*.c

w_canvas.o:	
	$(RM) $@
	$(CC) -c $(CFLAGS) $(DIR_DEFS) $*.c

w_rottext.o:	
	$(RM) $@
	$(CC) -c $(CFLAGS) $(CACHE) $*.c

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

.c.i:
	$(RM) $@
	$(CC) -E $(CFLAGS) $(_NOOP_) $*.c -o $@

.c.o:
	$(RM) $@
	$(CC) -c $(CFLAGS) $*.c

emptyrule::

clean::
	$(RM_CMD) *.o *.lib *.lst *.lnk *.gst *.map *.bak scoptions make.log "#"*

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

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"

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

Makefiles::

includes::

depend::

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

