SUBDIRS = ws os cs2l dot2l examples
+# lefty build parameters
+#not useful / old:
+# FEATURE_CS coshell support
+# FEATURE_NETSCAPE build lefty as a netscape plugin
+# FEATURE_RUSAGE print rusage stats on exit
+# FEATURE_VFORK use vfork instead of fork
+# FEATURE_GMAP build performer version of lefty (source in lefty3d)
+# FEATURE_MESAGL assume MesaGL instead of SGI's OpenGL for GMAP
+# FEATURE_MINTSIZE use int instead of short to hold object sizes.
+# allows for larger objects (strings, hash tables, etc.)
+# FEATURE_MS assume windows system calls (as opposed to UNIX)
+# to use when building on ms windows without UWIN
+# FEATURE_X11 assume X11 graphics calls
+# FEATURE_BACKINGSTORE ask X server to use backing store for canvas
+# FEATURE_NEXTAW when linking with -lnextaw a widget lib ala NeXT
+# FEATURE_XAW3D when linking with -lXaw3d a nicer looking widget lib
+# FEATURE_WIN32 assume WIN32 graphics calls
+# FEATURE_DOT when linking in the dot2l code, a graph parser
+
+DOT2L = dot2l
+WM = ws/x11
+OS = os/unix
+
+leftydir = $(pkgdatadir)/lefty
+pdfdir = $(pkgdatadir)/doc/pdf
+
+DEFINES=-DLEFTYPATH=\"$(LEFTYLIBDIR)\" -DHAVE_CONFIG_H \
+ -DFEATURE_MINTSIZE -DFEATURE_DOT -DFEATURE_X11
+
AM_CPPFLAGS = \
-I$(top_srcdir)/cmd/lefty/ws/x11 \
-I$(top_srcdir)/cmd/lefty/os/unix \
+ -I$(top_srcdir)/cmd/lefty/cs2l \
-I$(top_srcdir)/cmd/lefty/dot2l @XAW_INCLUDES@
+AM_CFLAGS = $(DEFINES) @X_CFLAGS@
+
man = lefty.1
pdf = lefty.pdf
-leftydir = $(pkgdatadir)/lefty
-pdfdir = $(pkgdatadir)/doc/pdf
-
-AM_CFLAGS = -DLEFTYPATH=\"$(leftydir)\" -DHAVEDOT @X_CFLAGS@
-
noinst_HEADERS = code.h common.h display.h exec.h g.h gfxview.h internal.h \
io.h lex.h mem.h parse.h str.h tbl.h txtview.h
+
if WITH_X
bin_PROGRAMS = lefty
man_MANS = $(man)
## Process this file with automake to produce Makefile.in
-AM_CPPFLAGS = -I$(top_srcdir)/cmd/lefty
+AM_CPPFLAGS = -I$(top_srcdir)/cmd/lefty -DHAVE_CONFIG_H \
+ -DFEATURE_MINTSIZE -DFEATURE_DOT -DFEATURE_X11
noinst_HEADERS = cs2l.h
-# noinst_LTLIBRARIES = libcs2l.la
+noinst_LTLIBRARIES = libcs2l.la
-# libcs2l_la_SOURCES = cs2l.c
+libcs2l_la_SOURCES = cs2l.c
EXTRA_DIST = cs2l.c
--- /dev/null
+## Process this file with automake to produce Makefile.in
+
+AM_CPPFLAGS = -I$(top_srcdir)/cmd/lefty -DFEATURE_GTK
+
+noinst_HEADERS = gcommon.h
+noinst_LTLIBRARIES = libws.la
+
+libws_la_SOURCES = garray.c gbutton.c gcanvas.c gcommon.c glabel.c \
+ gmenu.c gpcanvas.c gquery.c gscroll.c gtext.c gview.c
--- /dev/null
+## Process this file with automake to produce Makefile.in
+
+AM_CPPFLAGS = -I$(top_srcdir)/cmd/lefty
+
+noinst_HEADERS = gcommon.h
+noinst_LTLIBRARIES = libws.la
+
+libws_la_SOURCES = garray.c gbutton.c gcanvas.c gcommon.c glabel.c \
+ gmenu.c gpcanvas.c gquery.c gscroll.c gtext.c gview.c
SUBDIRS = libfilereq
-AM_CPPFLAGS = -I$(top_srcdir)/cmd/lefty @XAW_INCLUDES@
-
-AM_CFLAGS = @X_CFLAGS@
+AM_CPPFLAGS = -I$(top_srcdir)/cmd/lefty -DFEATURE_X11 @XAW_INCLUDES@ @X_CFLAGS@
noinst_HEADERS = gcommon.h
if WITH_X
libws_la_SOURCES = garray.c gbutton.c gcanvas.c gcommon.c glabel.c \
gmenu.c gpcanvas.c gquery.c gscroll.c gtext.c gview.c
-
-EXTRA_DIST = $(libws_la_SOURCES)