#include "Wc.tmpl"

XCOMM ##########################################################################
XCOMM # Top level Imakefile for the Widget Creation Library Distribution,
XCOMM # including Ari, Cri, Mri, and Ori.
XCOMM #
XCOMM # Author:	David E. Smyth
XCOMM # SccsID:	@(#) Imakefile	1.10 92/10/28 08:34:02
XCOMM ###########################################################################

#define IHaveSubdirs

DESTDIR =

/*
 * It is absolutely essential that sub-directories with libraries
 * come before subdirectories which link against the libraries!
 *
 * Note that Cornell and OpenLook libraries need Xp/Table.
 */

#if HaveAthenaWidgetSet
     WcATHENA = Xp
#endif

#if HaveCornellWidgetSet
     WcCORNELL = Xcp Cri
#if !HaveAthenaWidgetSet
     WcATHENA = Xp
#endif
#endif

#if HaveMotifWidgetSet
     WcMOTIF = Xmp Mri
#endif

#if HaveOpenLookWidgetSet
     WcOPEN_LOOK = Xop Ori
#if !HaveAthenaWidgetSet
     WcATHENA = Xp
#endif
#endif

 SUBDIRS = Wc $(WcATHENA) $(WcCORNELL) $(WcMOTIF) $(WcOPEN_LOOK) $(WcSTUFF)

/* I'm only interested in the Table-Widget */
SUBDIRS = Xp

NamedTargetSubdirs(all,$(SUBDIRS),"making",,all)

World:
	@echo ""
	@echo "Building Release 2.3 of Wcl - the Widget Creation Library"
	@echo ""
	@echo "###############################################"
	@echo "# I trust you first set parameters in Wc.tmpl #"
	@echo "###############################################"
	@echo ""
	@date
	@echo ""
	$(MAKE) $(MFLAGS) Makefile
	$(MAKE) $(MFLAGS) Makefiles
	$(MAKE) $(MFLAGS) clean
	$(MAKE) $(MFLAGS) includes
	$(MAKE) $(MFLAGS) depend
	$(MAKE) all

DependSubdirs($(SUBDIRS))

#if NeedLocal_strings_h
includes:: ./strings.h

./strings.h:
	$(GET_LOCAL_STRINGS_H)
#endif
