XCOMM $XConsortium: Imakefile,v 1.78 91/09/18 14:28:23 rws Exp $

#define DoNormalLib NormalLibXaw
#define DoSharedLib SharedLibXaw
#define DoDebugLib DebugLibXaw 
#define DoProfileLib ProfileLibXaw 
#define HasSharedData YES
#define LibName Xaw
#define SoRev SOXAWREV
#define IncSubdir Xaw3d

#ifdef LinuxAoutArchitecture
JUMP_ROOT_Xaw3d = $(AWIDGETSRC)3d
JUMP_IS_HOST_Xaw3d = YES
JUMP_STUBLIBS_Xaw3d = libXaw3d.sa
JUMP_SUBDIRS_Xaw3d = $(JUMP_ROOT_Xt)
JUMP_DIR_Xaw3d = $(JUMP_ROOT_Xaw3d)/shared
JUMP_VARS_Xaw3d = $(JUMP_ROOT_Xaw3d)/jump_vars
JUMP_FUNCS_Xaw3d = $(JUMP_ROOT_Xaw3d)/jump_funcs
JUMP_IGNORE_Xaw3d = $(JUMP_ROOT_Xaw3d)/jump_ignore
JUMP_EXPORT_Xaw3d = $(JUMP_DIR_Xaw3d)/jump.vars
JUMP_IMPORT_Xaw3d = $(JUMP_EXPORT_Xt) $(JUMP_EXPORT_X11)
JUMP_ADDRESS_Xaw3d = 0x60300000
JUMP_JUMPTABLESIZE_Xaw3d = 0x4000
JUMP_GOTSIZE_Xaw3d = 4096
JUMP_STUBNAMES_Xaw3d = libXaw3d
JUMP_STUBS_IMPORT_Xaw3d = $(JUMP_STUBS_IMPORT_X11)
JUMP_LDLIBS_Xaw3d = $(JUMP_ROOT_Xt)/libXt.sa $(JUMP_ROOT_Xt)/libXmu.sa \
        $(JUMP_ROOT_Xt)/libXext.sa $(JUMP_ROOT_X11)/libX11.sa \
        $(JUMP_LDLIBS_libc)
#endif

#ifdef SharedXawReqs
REQUIREDLIBS = SharedXawReqs
#endif

DEFINES = XawI18nDefines

       LINTLIBS = $(LINTXLIB) $(LINTXTOOL)

EXTRA_DEFINES = -DARROW_SCROLLBAR -DUSEGRAY

#  EXTRA_INCLUDES = -I.

HEADERS = \
	AllWidgets.h \
	AsciiSink.h \
	AsciiSinkP.h \
	AsciiSrc.h \
	AsciiSrcP.h \
	AsciiText.h \
	AsciiTextP.h \
	Box.h \
	BoxP.h \
	Cardinals.h \
	Command.h \
	CommandP.h \
	Dialog.h \
	DialogP.h \
	Form.h \
	FormP.h \
	Grip.h \
	GripP.h \
	Label.h \
	LabelP.h \
	Layout.h \
	LayoutP.h \
	List.h \
	ListP.h \
	MenuButton.h \
	MenuButtoP.h \
	MultiSrc.h \
	MultiSrcP.h \
	MultiSink.h \
	MultiSinkP.h \
	Paned.h \
	PanedP.h \
	Panner.h \
	PannerP.h \
	Porthole.h \
	PortholeP.h \
	Repeater.h \
	RepeaterP.h \
	Reports.h \
	Scrollbar.h \
	ScrollbarP.h \
	Simple.h \
	SimpleP.h \
	SimpleMenu.h \
	SimpleMenP.h \
	Sme.h \
	SmeP.h \
	SmeBSB.h \
	SmeBSBP.h \
	SmeLine.h \
	SmeLineP.h \
	SmeThreeD.h \
	SmeThreeDP.h \
	StripChart.h \
	StripCharP.h \
	Template.c \
	Template.h \
	TemplateP.h \
	Text.h \
	TextP.h \
	TextSink.h \
	TextSinkP.h \
	TextSrc.h \
	TextSrcP.h \
	ThreeD.h \
	ThreeDP.h \
	Toggle.h \
	ToggleP.h \
	Tree.h \
	TreeP.h \
	VendorEP.h \
	Viewport.h \
	ViewportP.h \
	XawImP.h \
	XawInit.h

SRCS = \
	AllWidgets.c \
	AsciiSink.c \
	AsciiSrc.c \
	AsciiText.c \
	Box.c \
	Command.c \
	Dialog.c \
	Form.c \
	Grip.c \
	Label.c \
	Layout.c \
	List.c \
	MenuButton.c \
	MultiSrc.c \
	MultiSink.c \
	Paned.c \
	Panner.c \
	Porthole.c \
	Repeater.c \
	Scrollbar.c \
	Simple.c \
	SimpleMenu.c \
	Sme.c \
	SmeBSB.c \
	SmeLine.c \
	SmeThreeD.c \
	StripChart.c \
	Text.c \
	TextSink.c \
	TextSrc.c \
	TextAction.c \
	TextPop.c \
	TextTr.c \
	ThreeD.c \
	Toggle.c \
	Tree.c \
	Vendor.c \
	Viewport.c \
	XawIm.c \
	XawInit.c \
	XawI18n.c \
	sharedlib.c \
	laygram.c \
	laylex.c

#if SharedDataSeparation
UNSHAREDOBJS = AllWidgets.o sharedlib.o
#endif

OBJS = \
	AllWidgets.o \
	AsciiSink.o \
	AsciiSrc.o \
	AsciiText.o \
	Box.o \
	Command.o \
	Dialog.o \
	Form.o \
	Grip.o \
	Label.o \
	Layout.o \
	List.o \
	MenuButton.o \
	MultiSrc.o \
	MultiSink.o \
	Paned.o \
	Panner.o \
	Porthole.o \
	Repeater.o \
	Scrollbar.o \
	Simple.o \
	SimpleMenu.o \
	Sme.o \
	SmeBSB.o \
	SmeLine.o \
	SmeThreeD.o \
	StripChart.o \
	Text.o \
	TextSink.o \
	TextSrc.o \
	TextAction.o \
	TextPop.o \
	TextTr.o \
	ThreeD.o \
	Toggle.o \
	Tree.o \
	Vendor.o \
	Viewport.o \
	XawIm.o \
	XawI18n.o \
	XawInit.o \
	laygram.o \
	laylex.o

#include <Library.tmpl>

#ifdef LexCmd
LEX=LexCmd
#endif
#ifdef YaccCmd
YACC=YaccCmd
#endif

all::

depend:: laygram.c laylex.c

#if DoSharedLib && SharedDataSeparation
SpecialCObjectRule(sharedlib.o,NullParameter,$(SHLIBDEF))
#endif

laygram.c : laygram.y
	$(YACC) -d laygram.y
	sed 's/yy/LayYY/g' y.tab.c > laygram.c
	sed 's/yy/LayYY/g' y.tab.h > laygram.h
	$(RM) y.tab.c y.tab.h

laylex.c: laylex.l
	$(LEX) laylex.l
	sed 's/yy/LayYY/g' lex.yy.c > laylex.c
	$(RM) lex.yy.c

clean::
	$(RM) laygram.c laylex.c

DependTarget()

