    STD_DEFINES = LibraryDefines
    CDEBUGFLAGS = LibraryCDebugFlags
       INCLUDES = -I. -I$(TOOLKITSRC) -I$(TOP) -I$(TOP)/X11
   INSTALLFLAGS = $(INSTINCFLAGS)
       LINTLIBS = $(LINTXLIB) $(LINTXTOOL)
#ifdef RtArchitecture
             CC = pcc
#endif

HEADERS = \
	Xcu/Bmgr.h \
	Xcu/BmgrP.h \
	Xcu/BmgrR.h \
	Xcu/Button.h \
	Xcu/ButtonI.h \
	Xcu/ButtonP.h \
	Xcu/Command.h \
	Xcu/CommandI.h \
	Xcu/CommandP.h \
	Xcu/Deck.h \
	Xcu/DeckP.h \
	Xcu/FloatR.h \
	Xcu/GravityR.h \
	Xcu/JustifyR.h \
	Xcu/Label.h \
	Xcu/LabelP.h \
	Xcu/ProcedureR.h \
	Xcu/Rc.h \
	Xcu/RcP.h \
	Xcu/ResizePR.h \
	Xcu/Simple.h \
	Xcu/SimpleI.h \
	Xcu/SimpleP.h \
	Xcu/SimpleR.h \
	Xcu/Tbl.h \
	Xcu/TblP.h \
	Xcu/Wlm.h \
	Xcu/WlmP.h \
	Xcu/disclaimer.h

SRCS = \
	Bmgr.c \
	BmgrR.c \
	Button.c \
	Command.c \
	Deck.c \
	FloatR.c \
	GravityR.c \
	JustifyR.c \
	Label.c \
	Rc.c \
	Rc.l \
	Rc.y \
	ResizePR.c \
	Simple.c \
	Tbl.c \
	Tbl.l \
	Tbl.y \
	Wlm.c \
	Copy_ds.c

OBJS = \
	Bmgr.o \
	BmgrR.o \
	Button.o \
	Command.o \
	Deck.o \
	FloatR.o \
	GravityR.o \
	JustifyR.o \
	Label.o \
	Rc.o \
	ResizePR.o \
	Simple.o \
	Tbl.o \
	Wlm.o \
	Copy_ds.o

#if DebugLibXcu && ProfileLibXcu
DebuggedAndProfiledLibraryObjectRule()
#else
# if DebugLibXcu
DebuggedLibraryObjectRule()
# else
#  if ProfileLibXcu
ProfiledLibraryObjectRule()
#  else
NormalLibraryObjectRule()
#  endif
# endif
#endif

NormalLibraryTarget(Xcu,$(OBJS))
LintLibraryTarget(Xcu,$(SRCS))
InstallLibrary(Xcu,$(USRLIBDIR))
InstallLintLibrary(Xcu,$(LINTLIBDIR))

#if ProfileLibXcu
ProfiledLibraryTarget(Xcu,$(OBJS))
InstallLibrary(Xcu_p,$(USRLIBDIR))
#endif

#if DebugLibXcu
DebuggedLibraryTarget(Xcu,$(OBJS))
#endif

InstallMultiple($(HEADERS),$(INCDIR))

DependTarget()

NormalLintTarget($(SRCS))

Rc.c : ;

Rc.o : Rc.y.c

Rc.lex.c :	Rc.l
	lex Rc.l
	mv lex.yy.c Rc.lex.c

Rc.y.c :	Rc.y Rc.lex.c
	yacc Rc.y
	mv y.tab.c Rc.y.c


Tbl.c : ;

Tbl.lex.c :	Tbl.l
	lex Tbl.l
	sed 's/yy/ytbl/g' < lex.yy.c > Tbl.lex.c
	rm lex.yy.c

Tbl.o : Tbl.y.c

Tbl.y.c :	Tbl.y Tbl.lex.c
	@echo "Expect 2 shift/reduce conflicts."
	yacc Tbl.y
	@echo "These conflicts are harmless... not to worry."
	@echo "Someday I'll figure out how to make them go away."
	@echo
	sed 's/yy/ytbl/g' < y.tab.c > Tbl.y.c
	rm y.tab.c


