#ifndef XCOMM
#define XCOMM #
#endif

XCOMM FIG : Facility for Interactive Generation of figures
XCOMM Copyright (c) 1985-1988 by Supoj Sutanthavibul
XCOMM Parts Copyright (c) 1989-2002 by Brian V. Smith
XCOMM Parts Copyright (c) 1991 by Paul King
XCOMM
XCOMM Any party obtaining a copy of these files is granted, free of charge, a
XCOMM full and unrestricted irrevocable, world-wide, paid up, royalty-free,
XCOMM nonexclusive right and license to deal in this software and documentation
XCOMM files (the "Software"), including without limitation the rights to use,
XCOMM copy, modify, merge, publish distribute, sublicense and/or sell copies of
XCOMM the Software, and to permit persons who receive copies from any such
XCOMM party to do so, with the only requirement being that the above copyright
XCOMM and this permission notice remain intact.

XCOMM ------------------------------
XCOMM IMPORTANT GENERAL NOTE:
XCOMM ------------------------------
XCOMM
XCOMM Anytime the Imakefile is changed, you must do either "xmkmf" or "make Makefile",
XCOMM followed by "make clean" before doing a "make" or "make install" of any kind.


XCOMM If you want to install xfig in a directory other than the default X11 binary
XCOMM directory, uncomment the following "BINDIR" line and change the path
XCOMM to the full path of the directory where you want xfig to be installed.
XCOMM Also, you may have to uncomment and redefine MKDIRHIER because "make" looks
XCOMM for it relative to the BINDIR variable.
XCOMM
BINDIR = /usr/bin
XCOMM MKDIRHIER = /bin/sh /usr/bin/X11/mkdirhier -p
MKDIRHIER = mkdirhier 

XCOMM Uncomment and change XAPPLOADDIR to the directory where you want the
XCOMM app-defaults resource files to go.  You will have to use the environment
XCOMM variable XAPPLRESDIR to point to this directory.
XCOMM On Sun systems running Openwindows you probably need to set the environment
XCOMM variable XUSERFILESEARCHPATH to point to your app-defaults directory, and 
XCOMM append a "%N" to the path, e.g. /users/me/xfig/app-defaults/%N
XCOMM
XCOMM Don't set the DESTDIR variable unless you want to install xfig in a totally
XCOMM different tree than the "correct" tree that your X system expects. The usual
XCOMM purpose of DESTDIR is to test an install process by installing in a benign area.

XCOMM XAPPLOADDIR = /home/user/xfig

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

#define XAW3D

XCOMM Uncomment the following if you have David Hawkey's Xaw3D version 1.5E which has
XCOMM some new features, including "Tips", which replace xfig's "help balloons"

XCOMM #define XAW3D1_5E

#ifdef XAW3D1_5E
    DUSEXAW3D = -DXAW3D -DXAW3D1_5E
    XAWLIB = -lXaw3d15e
#else
    XAW_SRC = w_menuentry.c SmeCascade.c SmeBSB.c SimpleMenu.c
    XAW_OBJ = w_menuentry.o SmeCascade.o SmeBSB.o SimpleMenu.o
#   ifdef XAW3D
	DUSEXAW3D = -DXAW3D
	XAWLIB = -lXaw3d
#   endif /* XAW3D */
#endif /* XAW3D1_5E */

XCOMM Redefine the following if your PNG library, zlib library and/or include file
XCOMM are in different places

PNGLIBDIR = $(USRLIBDIR)
PNGINC = -I/usr/local/include
ZLIBDIR = $(USRLIBDIR)

XCOMM If don't want JPEG support, comment out the #define USEJPEG line
XCOMM Uncomment the #define for USEJPEG if you want to be able to import
XCOMM JPEG (Joint Photographic Experts Group) files.

#define USEJPEG

XCOMM If you don't have the jpeg library in your system library area (meaning
XCOMM that it must be compiled first), comment out the USEINSTALLEDJPEG variable
XCOMM (using XCOMM), change the JPEGLIBDIR variable to the directory where your
XCOMM jpeg library resides and change the JPEGINCDIR to the directory where your
XCOMM jpeg header files (include) reside.
XCOMM You must have version 5b or newer of the jpeg library.

#define USEINSTALLEDJPEG

#ifdef USEJPEG
#ifdef USEINSTALLEDJPEG
JPEGLIBDIR = /usr/local/lib
JPEGINC = -I/usr/include/X11
#else
JPEGLIBDIR = ../jpeg
JPEGINC = -I$(JPEGLIBDIR)
#endif /* USEINSTALLEDJPEG */
#endif /* USEJPEG */

XCOMM Uncomment the #define for USEXPM if you want to use the XPM
XCOMM (color pixmap) package.
XCOMM
XCOMM USEXPM will allow import/export of XPM files.
XCOMM USEXPM_ICON uses a color xpm icon for xfig itself (USEXPM must be
XCOMM	defined if you use USEXPM_ICON)
XCOMM You need XPM version 3.4c or newer.  This is available from ftp.x.org
XCOMM   in /contrib/libraries.
XCOMM Change XPMLIBDIR if necessary to point to the xpm library (libXpm)
XCOMM Change XPMINC if necessary to point to the include file for xpm (xpm.h)

#define USEXPM
#define USEXPM_ICON

#ifdef USEXPM
XPMLIBDIR = /usr/local/lib
XPMINC = -I/usr/local/include/X11
#endif

XCOMM Uncomment the following definiton if you want to use the small icons
XCOMM for the panel buttons.  Use this if you have a 800x600 or smaller screen.

XCOMM #define USESMALLICONS

XCOMM Change the location of your printcap file if necessary
PRINTCAP = -DPRINTCAP=\"/etc/printcap\"

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

XCOMM If you do not want to use the CompKeyDB but the standard behavior of
XCOMM the Compose key, uncomment the next line 

XCOMM NO_COMPKEYDB = -DNO_COMPKEYDB

XCOMM If you have a Compose indicator LED and you would it turned on when you
XCOMM are entering multi-key characters (like a-umlaut, c-cedilla, etc)
XCOMM uncomment the next line.  You may have to change the value from 2
XCOMM to 1, 3, or 4 depending on your workstation model and X libraries.

COMP_LED = -DCOMP_LED=3

XCOMM Comment out the next line if you have any problems with the locale.
XCOMM If your setlocale() doesn't support the locale, you should
XCOMM add -DSETLOCALE to I18N_DEFS.

XCOMM #define I18N

XCOMM If using an input tablet uncomment the following

TABLIB = $(XILIB)
USETAB = -DUSE_TAB

XCOMM uncomment the following line if your compiler supports
XCOMM inline functions. With the "INLINE" keyword, you should notice that
XCOMM the display will be a bit faster in complex figures

XCOMM USEINLINE = -DUSE_INLINE

XCOMM use (and change) the following if you want the multi-key data base file
XCOMM somewhere other than the standard X11 library directory
XCOMM be sure to comment out the second copy of XFIGLIBDIR if you use this one
XCOMM XFIGLIBDIR = $(LIBDIR)

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

XCOMM XFIGDOCDIR tells where the html and pdf documentation should go
XCOMM XFIGDOCDIR = $(DOCDIR)/xfig
XFIGDOCDIR = /usr/local/xfig/doc

XCOMM MANDIR tells where the standard man pages should go (no need to change it
XCOMM if you want the man pages installed in the standard place on your system
XCOMM MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
MANDIR = /usr/local/xfig/man

XCOMM If your system doesn't have strstr undefine the following definition
XCOMM HAVE_NO_NOSTRSTR = -DNOSTRSTR

XCOMM If your system doesn't have strcasecmp and/or strncasecmp
XCOMM undefine the following two definitions

XCOMM HAVE_NO_STRCASECMP = -DHAVE_NO_STRCASECMP
XCOMM HAVE_NO_STRNCASECMP = -DHAVE_NO_STRNCASECMP

XCOMM If your system doesn't have the strerror() function (has sys_errlist) then
XCOMM uncomment NEED_STRERROR.

XCOMM NEED_STRERROR = -DNEED_STRERROR

XCOMM If your system doesn't have dirent.h undefine the following definition

XCOMM HAVE_NO_DIRENT = -DHAVE_NO_DIRENT

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

CACHE = -DCACHE_BITMAPS -DCACHE_SIZE_LIMIT=300

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

XCOMM If you want a compiler other than "cc", define it here

XCOMM CC = /opt/SUNWspro/bin/cc

XCOMM *****************************************************
XCOMM *****************************************************
XCOMM You shouldn't have to change anything below this line
XCOMM *****************************************************
XCOMM *****************************************************

INSTDATFLAGS = -m 0644

#ifdef USEJPEG

#ifdef USEINSTALLEDJPEG
JPEGLIB = -L$(JPEGLIBDIR) -ljpeg
#else
JPEGCONF = configure
JPEGLIB = $(JPEGLIBDIR)/libjpeg.a
DEPLIBJPEG = $(JPEGLIBDIR)/libjpeg.a
#endif /* USEINSTALLEDJPEG */

#endif /* USEJPEG */

#ifdef I18N
I18N_DEFS = -DI18N -DSETLOCALE
I18N_SRC = w_i18n.c
I18N_OBJ = w_i18n.o
#endif

DIR_DEFS=		-DXFIGLIBDIR=\"$(XFIGLIBDIR)\" \
			-DXFIGDOCDIR=\"$(XFIGDOCDIR)\" $(PRINTCAP)

XCOMM location of Fig object libraries
OBJLIBDIR =		$(XFIGLIBDIR)/Libraries
OBJLIB =		-DOBJLIBDIR=\"$(OBJLIBDIR)\"

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

#ifdef InstallManPage
#undef InstallManPage
#endif
#define InstallManPage(file,dest)                                       @@\
InstallManPageLong(file,dest,file)

#ifdef USESMALLICONS
DUSESMALLICONS = -DUSE_SMALL_ICONS
#endif /* USESMALLICONS */

PNGLIBS = -L$(PNGLIBDIR) -lpng -L$(ZLIBDIR) -lz

#ifdef USEJPEG
DUSEJPEG = -DUSE_JPEG
READJPEGS = f_readjpg.c
READJPEGO = f_readjpg.o
#endif /* USEJPEG */

#ifdef USEXPM
DUSEXPM = -DUSE_XPM
XPMLIBS = -L$(XPMLIBDIR) -lXpm
READXPMS = f_readxpm.c
READXPMO = f_readxpm.o
#ifdef USEXPM_ICON
DUSEXPMICON = -DUSE_XPM_ICON
#endif /* USEXPM_ICON */
#endif /* USEXPM */

DEFINES =             $(STRDEFINES) $(USEINLINE) $(DUSEXPM) $(DUSEXAW3D) \
			$(DUSEJPEG) $(I18N_DEFS) $(HAVE_NO_DIRENT) -DNEWARROWTYPES


XFIGSRC =	d_arc.c d_arcbox.c d_box.c d_ellipse.c d_picobj.c \
		d_subspline.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_compound.c \
		e_convert.c e_copy.c e_delete.c e_deletept.c \
		e_edit.c e_flip.c e_glue.c e_joinsplit.c e_measure.c e_move.c \
		e_movept.c e_placelib.c e_rotate.c e_scale.c e_tangent.c e_update.c \
		f_load.c f_neuclrtab.c f_picobj.c f_read.c f_readold.c \
		f_readppm.c f_readpng.c f_readtif.c f_readeps.c \
		f_readxbm.c f_readgif.c $(READJPEGS) f_readpcx.c $(READXPMS) \
		f_save.c f_util.c f_wrpcx.c f_wrpng.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_smartsearch.c u_translate.c u_undo.c w_digitize.c w_listwidget.c \
		w_browse.c w_capture.c w_srchrepl.c w_help.c w_layers.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_library.c w_modepanel.c w_mousefun.c w_msgpanel.c \
		w_print.c w_rottext.c w_rulers.c w_setup.c w_style.c w_util.c w_zoom.c \
		e_chop.c u_quartic.c w_snap.c w_keyboard.c w_intersect.c \
		$(I18N_SRC) $(XAW_SRC)

XFIGOBJ =	d_arc.o d_arcbox.o d_box.o d_ellipse.o d_picobj.o \
		d_subspline.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_compound.o \
		e_convert.o e_copy.o e_delete.o e_deletept.o \
		e_edit.o e_flip.o e_glue.o e_joinsplit.o e_measure.o e_move.o \
		e_movept.o e_placelib.o e_rotate.o e_scale.o e_tangent.o e_update.o \
		f_load.o f_neuclrtab.o f_picobj.o f_read.o f_readold.o \
		f_readppm.o f_readpng.o f_readtif.o f_readeps.o \
		f_readxbm.o f_readgif.o $(READJPEGO) f_readpcx.o $(READXPMO) \
		f_save.o f_util.o f_wrpcx.o f_wrpng.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_smartsearch.o u_translate.o u_undo.o w_digitize.o w_listwidget.o \
		w_browse.o w_capture.o w_srchrepl.o w_help.o w_layers.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_library.o w_modepanel.o w_mousefun.o w_msgpanel.o \
		w_print.o w_rottext.o w_rulers.o w_setup.o w_style.o w_util.o w_zoom.o \
		e_chop.o u_quartic.o w_snap.o w_keyboard.o w_intersect.o \
		$(I18N_OBJ) $(XAW_OBJ)

XCOMM Other dependencies should be handled by "make depend"

MAINDEPFILES =  patchlevel.h version.h

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

EXTRA_INCLUDES = $(JPEGINC) $(PNGINC) $(XPMINC)
DEPLIBS = XawClientDepLibs

LOCAL_LIBRARIES = 	$(JPEGLIB)
SYS_LIBRARIES= 		$(XPMLIBS) $(PNGLIBS) $(TABLIB) XawClientLibs -lm

#define PassCDebugFlags

xfig: $(DEPLIBJPEG)

XCOMM only compile our jpeg if the user doesn't have one installed

#ifdef USEJPEG

#ifndef USEINSTALLEDJPEG
$(JPEGLIBDIR)/libjpeg.a: $(JPEGLIBDIR)/jconfig.h
	cd $(JPEGLIBDIR); $(MAKE) libjpeg.a

$(JPEGLIBDIR)/jconfig.h:
	cd $(JPEGLIBDIR) ; ./$(JPEGCONF) CC='$(CC)'
#endif /* USEINSTALLEDJPEG */

#endif /* USEJPEG */

PROGRAM = xfig
AllTarget(xfig)

ComplexProgramTarget(xfig)

InstallAppDefaults(Fig)
InstallAppDefaults(Fig-color)

XCOMM Install the compose key database, object libraries and documentation
XCOMM here with "make install"

install::
	@if [ -d $(DESTDIR)$(XFIGLIBDIR) ]; then set +x; \
		else (set -x; $(MKDIRHIER) $(DESTDIR)$(XFIGLIBDIR) ; set +x; ); fi
	chmod a+x,u+w $(DESTDIR)$(XFIGLIBDIR)
	$(INSTALL) -m 644 -c CompKeyDB $(DESTDIR)$(XFIGLIBDIR)

XCOMM Install program, libraries and documentation with "make install.all"
install.all::
	$(MAKE) install
	$(MAKE) install.libs
	$(MAKE) install.doc

xfig.man: Doc/xfig.man
	$(LN) Doc/xfig.man xfig.man

XCOMM Install the documentation here with "make install.doc"
install.doc::
	@echo Installing man pages to $(MANDIR)
	@if [ -d $(DESTDIR)$(XFIGDOCDIR) ]; then set +x; \
		else (set -x; $(MKDIRHIER) $(DESTDIR)$(XFIGDOCDIR) ; set +x; ); fi
	@$(MAKE) install.man
	@$(MAKE) install.html

XCOMM Install the HTML documentation here with "make install.html"

#ifdef I18N
install.html::
	@$(MAKE) install.jhtml
	@$(MAKE) install.rhtml
#else
install.html::
	@$(MAKE) install.rhtml
#endif

install.rhtml::
	@(cd Doc ; \
	echo Copying pdf and html files to $(DESTDIR)$(XFIGDOCDIR) ; \
	$(INSTALL) -m 644 -c xfig_man.html $(DESTDIR)$(XFIGDOCDIR) ; \
	$(INSTALL) -m 644 -c xfig_ref_en.pdf $(DESTDIR)$(XFIGDOCDIR) ; \
	$(INSTALL) -m 644 -c xfig-howto.pdf $(DESTDIR)$(XFIGDOCDIR) ; \
	if [ -d $(DESTDIR)$(XFIGDOCDIR)/html ]; then set +x; \
	   else (set -x; $(MKDIRHIER) $(DESTDIR)$(XFIGDOCDIR)/html ); fi ; \
	if [ -d html ]; then \
	( cd html ; tar cf - *.* images ) | ( cd $(DESTDIR)$(XFIGDOCDIR)/html ; tar xf - ) ; fi ; \
	) ;

#ifdef I18N
install.jhtml::
	@echo "Copying japanese html files to $(DESTDIR)$(XFIGDOCDIR)"
	@(cd Doc/html/japanese ; \
	if [ -d $(DESTDIR)$(XFIGDOCDIR)/html/japanese ]; then set +x; \
	   else (set -x; $(MKDIRHIER) $(DESTDIR)$(XFIGDOCDIR)/html/japanese ); fi ; \
	tar cf - * | ( cd $(DESTDIR)$(XFIGDOCDIR)/html/japanese ; tar xf - ) ; \
	done) ;
#endif

XCOMM Install the object libraries here with "make install.libs"
install.libs::
	@echo "Copying Fig Object Libraries"
	@if [ -d $(DESTDIR)$(OBJLIBDIR) ]; then set +x; \
		else (set -x; $(MKDIRHIER) $(DESTDIR)$(OBJLIBDIR) ; set +x; ); fi
	@if [ -d Libraries ]; then \
		(cd Libraries ; tar cf - */. ) | ( cd $(DESTDIR)$(OBJLIBDIR) ; tar xf - ) ; \
	else echo No Object Libraries to install ; \
	fi;

SpecialObjectRule(main.o, main.c $(MAINDEPFILES) mode.h w_setup.h, $(USETAB) $(OBJLIB) $(DUSESMALLICONS) $(DUSEXPMICON) )
SpecialObjectRule(f_read.o, f_read.c $(MAINDEPFILES) mode.h, )
SpecialObjectRule(u_error.o, u_error.c $(MAINDEPFILES) mode.h,  )
SpecialObjectRule(resources.o, resources.c resources.h,  )
SpecialObjectRule(e_edit.o, e_edit.c  mode.h, )
SpecialObjectRule(f_readeps.o, f_readeps.c, $(PCXBUG) -DGSBIT )
SpecialObjectRule(w_capture.o, w_capture.c  w_capture.h, )
SpecialObjectRule(w_help.o, w_help.c, $(DIR_DEFS) )
SpecialObjectRule(w_canvas.o, w_canvas.c mode.h, $(DIR_DEFS) $(COMP_LED) $(NO_COMPKEYDB) )
SpecialObjectRule(w_icons.o, w_icons.c w_icons.h, $(DUSESMALLICONS) $(DUSEXPMICON) )
SpecialObjectRule(w_print.o, w_print.c w_print.h, $(DIR_DEFS) )
SpecialObjectRule(w_setup.o, w_setup.c w_setup.h w_icons.h, $(DUSESMALLICONS) )
SpecialObjectRule(w_rottext.o, w_rottext.c, $(CACHE) )
SpecialObjectRule(d_arc.o, d_arc.c  mode.h, )
SpecialObjectRule(d_arcbox.o, d_arcbox.c  mode.h, )
SpecialObjectRule(d_box.o, d_box.c  mode.h, )
SpecialObjectRule(d_ellipse.o, d_ellipse.c  mode.h, )
SpecialObjectRule(d_line.o, d_line.c  mode.h, )
SpecialObjectRule(d_picobj.o, d_picobj.c  mode.h, )
SpecialObjectRule(d_regpoly.o, d_regpoly.c  mode.h, )
SpecialObjectRule(d_spline.o, d_spline.c  mode.h, )
SpecialObjectRule(d_text.o, d_text.c  mode.h, )
SpecialObjectRule(e_addpt.o, e_addpt.c  mode.h, )
SpecialObjectRule(e_align.o, e_align.c  mode.h, )
SpecialObjectRule(e_arrow.o, e_arrow.c  mode.h, )
SpecialObjectRule(e_break.o, e_break.c  mode.h, )
SpecialObjectRule(e_compound.o, e_compound.c  mode.h, )
SpecialObjectRule(e_convert.o, e_convert.c  mode.h, )
SpecialObjectRule(e_copy.o, e_copy.c  mode.h, )
SpecialObjectRule(e_delete.o, e_delete.c  mode.h, )
SpecialObjectRule(e_deletept.o, e_deletept.c  mode.h, )
SpecialObjectRule(e_flip.o, e_flip.c  mode.h, )
SpecialObjectRule(e_glue.o, e_glue.c  mode.h, )
SpecialObjectRule(e_movept.o, e_movept.c  mode.h, )
SpecialObjectRule(e_placelib.o, e_placelib.c  mode.h, )
SpecialObjectRule(e_rotate.o, e_rotate.c  mode.h, )
SpecialObjectRule(e_scale.o, e_scale.c  mode.h, )
SpecialObjectRule(e_update.o, e_update.c  mode.h, )
SpecialObjectRule(f_load.o, f_load.c  mode.h, )
SpecialObjectRule(f_picobj.o, f_picobj.c  mode.h, )
SpecialObjectRule(f_save.o, f_save.c  mode.h, )
SpecialObjectRule(f_util.o, f_util.c  mode.h, )
SpecialObjectRule(mode.o, mode.c  mode.h, )
SpecialObjectRule(object.o, object.c  object.h mode.h, )
SpecialObjectRule(u_bound.o, u_bound.c  mode.h, )
SpecialObjectRule(u_create.o, u_create.c  mode.h, )
SpecialObjectRule(u_drag.o, u_drag.c  mode.h, )
SpecialObjectRule(u_draw.o, u_draw.c  u_draw_spline.c mode.h, )
SpecialObjectRule(u_geom.o, u_geom.c  u_draw_spline.c, )
SpecialObjectRule(u_elastic.o, u_elastic.c  mode.h, )
SpecialObjectRule(u_list.o, u_list.c  mode.h, )
SpecialObjectRule(u_markers.o, u_markers.c  mode.h, )
SpecialObjectRule(u_pan.o, u_pan.c  mode.h, )
SpecialObjectRule(u_print.o, u_print.c  mode.h, )
SpecialObjectRule(u_search.o, u_search.c  mode.h, )
SpecialObjectRule(u_undo.o, u_undo.c  mode.h, )
SpecialObjectRule(w_browse.o, w_browse.c  mode.h, )
SpecialObjectRule(w_cmdpanel.o, w_cmdpanel.c  mode.h, )
SpecialObjectRule(w_dir.o, w_dir.c  mode.h, )
SpecialObjectRule(w_drawprim.o, w_drawprim.c  mode.h, )
SpecialObjectRule(w_export.o, w_export.c  mode.h, )
SpecialObjectRule(w_file.o, w_file.c  mode.h, )
SpecialObjectRule(w_grid.o, w_grid.c  mode.h, )
SpecialObjectRule(w_indpanel.o, w_indpanel.c  mode.h w_indpanel.h object.h, )
SpecialObjectRule(w_library.o, w_library.c  mode.h, )
SpecialObjectRule(w_modepanel.o, w_modepanel.c  mode.h w_indpanel.h w_icons.h object.h, $(DUSESMALLICONS))
SpecialObjectRule(w_msgpanel.o, w_msgpanel.c  mode.h, )
SpecialObjectRule(w_rulers.o, w_rulers.c  mode.h, )
SpecialObjectRule(w_zoom.o, w_zoom.c  mode.h, )
#ifndef XAW3D1_5E
SpecialObjectRule(w_menuentry.o, w_menuentry.c  w_menuentry.h w_menuentryP.h, )
#endif

#ifdef USEJPEG
#ifndef USEINSTALLEDJPEG
SpecialObjectRule(f_readjpg.o, f_readjpg.c $(JPEGLIBDIR)/jconfig.h,  )
#endif /* USEINSTALLEDJPEG */
#endif /* USEJPEG */
