CFLAGS=	$(FLOAT) -g -D$(ARCH)
LXTLIB=	liblxt_$(ARCH).a
TROFF=	ptroff

LXTOBJS= menu.o menu_item.o\
	cursor.o image.o\
	panel.o panel_item.o panel_draw.o panel_evt.o\
	panel_conf.o panel_block.o panel_label.o panel_text.o panel_button.o\
	panel_slider.o panel_enum.o panel_choice.o panel_cycle.o panel_toggle.o\
	alert.o\
	canvas.o canvas_conf.o canvas_evt.o canvas_draw.o\
	textsw.o textsw_evt.o textsw_scroll.o textsw_hlt.o\
	textsw_paste.o textsw_exit.o textsw_get.o textsw_set.o\
	lxt_evt.o\
	masscomp.o

LXTINCS= lxt.h grey.bitmap menucursor.bitmap xvcursor.bitmap xvvscursor.bitmap\
	xvhscursor.bitmap buttonproc.bitmap leftwedge.bitmap upwedge.bitmap\
	choicemark.bitmap choicenomark.bitmap cycle.bitmap togglemark.bitmap\
	togglenomark.bitmap

all:	lxt demo

lxt:	$(LXTLIB)

$(LXTLIB): $(LXTOBJS)
	ar ruv $@ $?
	ranlib $@

$(LXTLIB)(%.o): %.o

textsw_scroll.o: textsw_scroll.c
	cp textsw_scroll.c textsw_scr.c
	cc $(CFLAGS) -c textsw_scr.c
	mv textsw_scr.o textsw_scroll.o
	rm textsw_scr.c

demo:	FRC
	@ cd peewee; make -f Makefile_MC

doc:	lxt.ms
	$(TROFF) -t -ms lxt.ms >lxt.doc

lint:	FRC
	lint -u *.c >lint.out

FRC:

