
if	"$(HAVE_AST)"
	:PACKAGE:	ast X11
else
	:PACKAGE: - X11
	static=1
end

.SOURCE: .INSERT ./dot2l ./cs2l ./examples 
.SOURCE: .INSERT ./os/unix ./ws/x11 ./ws/x11/libfilereq
HAVEDOT==1
/* SVR4==1 */

if _hosttype_ == "linux.*"
	GNU==1
end

LEFTYPATH == "$(LIBDIR)/lefty"

GSRC = g.c gcommon.c garray.c gbutton.c gcanvas.c glabel.c gmenu.c \
	gpcanvas.c gquery.c gscroll.c gtext.c gview.c mem.c common.c \
	SelFile.c Draw.c Path.c Dir.c

if HAVEDOT == 1
	DOT2LSRC = dotparse.y dot2l.c dotlex.c dottrie.c
end
if HAVECS == 1
	CS2LSRC = cs2l.c
	EXTRALIBS += -lcs -last
	:PACKAGE: - ast
end

:ALL: lefty -lgfx

lefty :: lefty.c gfxview.c txtview.c internal.c display.c str.c exec.c parse.c \
	lex.c $(DOT2LSRC) $(CS2LSRC) tbl.c code.c io.c \
	-lgfx -lXaw -lXmu -lXt -lX11 -lm $(EXTRALIBS) lefty.1

gfx :LIBRARY: $(GSRC)

EXAMPLES = def.lefty fractal.lefty tree.lefty

$(LIBDIR)/lefty :INSTALLDIR: $(EXAMPLES) lefty.psp

::	lefty.ps aix_mods os/mswin32 makefile examples s.c ws/mswin32 \
	ws/x11/libfilereq/README.selfile ws/x11/libfilereq/SelFile.c.ek 

