/*-----------------------------------------------------------------------------
  Top Level Imakefile for xfm

  Created 8/3/93 by Simon Marlow (simonm@dcs.gla.ac.uk)
-----------------------------------------------------------------------------*/

/* Uncomment the following line if your system has GCC but it is not used by
   default */
/* CC=gcc */

#define PassCDebugFlags 'CC=$(CC)'
#define Subdirs xfm 

MakeSubdirs(Subdirs)
MakefileSubdirs(Subdirs)
CleanSubdirs(Subdirs)
DependSubdirs(Subdirs)
InstallSubdirs(Subdirs)
InstallManSubdirs(Subdirs)

XFMLIBDIR = $(USRLIBDIR)/xfm

CppScriptTarget(xfm.install.script,xfm.install.cpp,-DLIBDIR=$(XFMLIBDIR),)
InstallScript(xfm.install,$(BINDIR))

/* CppFileTarget will not work under SunOS 4.1, you might wish to replace
   it by CppScriptTarget or install the appdefaults file by hand. */

CppFileTarget(Xfm.ad,Xfm.cpp,-DLIBDIR=$(XFMLIBDIR),)
InstallAppDefaults(Xfm)

install::
	MakeDir($(XFMLIBDIR)/dot.xfm)
	$(INSTALL) -c $(INSTDATFLAGS) xfm-apps $(XFMLIBDIR)/dot.xfm
	$(INSTALL) -c $(INSTDATFLAGS) xfm-tools $(XFMLIBDIR)/dot.xfm
	$(INSTALL) -c $(INSTDATFLAGS) xfmrc $(XFMLIBDIR)/dot.xfm
	$(INSTALL) -c $(INSTDATFLAGS) xfmdev $(XFMLIBDIR)/dot.xfm
	MakeDir($(XFMLIBDIR)/bitmaps)
	$(INSTALL) -c $(INSTDATFLAGS) bitmaps/""* $(XFMLIBDIR)/bitmaps
	MakeDir($(XFMLIBDIR)/pixmaps)
	$(INSTALL) -c $(INSTDATFLAGS) pixmaps/""* $(XFMLIBDIR)/pixmaps
	
