-AUTOMAKE_OPTIONS = foreign 1.4
-DISTCLEANFILES= *.orig *.rej *~ *.bak core
-MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
+include $(top_srcdir)/config/common.am
+
+SUBDIRS = forms
+CLEANFILES = stamp-xpm stamp-xforms
+DISTCLEANFILES += lyx_forms.h-tmp lyx_xpm.h-tmp
+BUILT_SOURCES = lyx_forms.h lyx_xpm.h
+
+EXTRA_DIST = lyx_forms.h.in lyx_xpm.h.in
+
+INCLUDES = -I$(top_srcdir)/images -I$(top_srcdir)/src \
+ -I$(top_srcdir)/src/frontends \
+ -I$(top_srcdir)/src/frontends/controllers \
+ $(BOOST_INCLUDES)
+
noinst_LTLIBRARIES = libxforms.la
-BOOST_INCLUDES = -I$(top_srcdir)/boost
-INCLUDES = -I${top_srcdir}/src/ \
- -I${top_srcdir}/src/frontends/ \
- ${SIGC_CFLAGS} $(BOOST_INCLUDES)
-LIBS=
-LDFLAGS=
-LYXDATADIRS = forms
-ETAGS_ARGS = --lang=c++
-# Alphabetical order please. It makes it easier to figure out what's missing.
+
+libxforms_la_LIBADD = @XFORMS_LIBS@ forms/*.lo
+
+# Alphabetical order please. It makes it easier to figure out what's missing.
libxforms_la_SOURCES = \
- ButtonController.h \
+ forms_fwd.h \
+ forms_gettext.C \
+ forms_gettext.h \
+ bmtable.c \
+ bmtable.h \
+ checkedwidgets.C \
+ checkedwidgets.h \
+ combox.c \
+ combox.h \
+ freebrowser.c \
+ freebrowser.h \
+ fdesign_base.C \
+ fdesign_base.h \
+ input_validators.C \
+ input_validators.h \
+ lyx_gui.C \
+ xfont_loader.C \
+ xfont_loader.h \
+ xfont_metrics.C \
+ xfont_metrics.h \
+ xforms_helpers.C \
+ xforms_helpers.h \
+ xforms_resize.C \
+ xforms_resize.h \
+ xformsBC.C \
+ xformsBC.h \
+ xformsImage.C \
+ xformsImage.h \
+ xformsTimeout.C \
+ xformsTimeout.h \
+ xscreen.C \
+ xscreen.h \
+ Alert_pimpl.C \
+ Color.C \
+ Color.h \
+ ColorHandler.C \
+ ColorHandler.h \
Dialogs.C \
- GUIRunTime.C \
+ Dialogs2.C \
+ FileDialog.C \
+ FontInfo.C \
+ FontInfo.h \
+ FormFiledialog.h \
+ FormFiledialog.C \
+ FormAboutlyx.C \
+ FormAboutlyx.h \
FormBase.C \
FormBase.h \
+ FormDialogView.C \
+ FormDialogView.h \
+ FormBibitem.C \
+ FormBibitem.h \
+ FormBibtex.C \
+ FormBibtex.h \
+ FormBox.C \
+ FormBox.h \
+ FormBrowser.C \
+ FormBrowser.h \
+ FormBranch.C \
+ FormBranch.h \
+ FormChanges.C \
+ FormChanges.h \
+ FormCharacter.C \
+ FormCharacter.h \
FormCitation.C \
FormCitation.h \
- form_citation.C \
- form_citation.h \
- FormCopyright.C \
- FormCopyright.h \
- form_copyright.C \
- form_copyright.h \
+ FormColorpicker.C \
+ FormColorpicker.h \
FormDocument.C \
FormDocument.h \
- form_document.C \
- form_document.h \
- FormError.C \
- FormError.h \
- form_error.C \
- form_error.h \
+ FormErrorList.C \
+ FormErrorList.h \
+ FormERT.C \
+ FormERT.h \
+ FormExternal.C \
+ FormExternal.h \
+ FormFloat.C \
+ FormFloat.h \
+ FormForks.C \
+ FormForks.h \
FormGraphics.C \
FormGraphics.h \
- form_graphics.C \
- form_graphics.h \
- FormIndex.C \
- FormIndex.h \
- form_index.C \
- form_index.h \
- FormInset.C \
- FormInset.h \
+ FormInclude.C \
+ FormInclude.h \
+ FormLog.C \
+ FormLog.h \
+ FormMathsBitmap.C \
+ FormMathsBitmap.h \
+ FormMathsDelim.C \
+ FormMathsDelim.h \
+ FormMathsMatrix.C \
+ FormMathsMatrix.h \
+ FormMathsPanel.C \
+ FormMathsPanel.h \
+ FormMathsSpace.C \
+ FormMathsSpace.h \
+ FormMathsStyle.C \
+ FormMathsStyle.h \
+ FormMinipage.C \
+ FormMinipage.h \
+ FormNote.C \
+ FormNote.h \
FormParagraph.C \
FormParagraph.h \
- form_paragraph.C \
- form_paragraph.h \
+ FormPreamble.C \
+ FormPreamble.h \
FormPreferences.C \
FormPreferences.h \
- form_preferences.C \
- form_preferences.h \
FormPrint.C \
FormPrint.h \
- form_print.C \
- form_print.h \
FormRef.C \
FormRef.h \
- form_ref.C \
- form_ref.h \
+ FormSearch.C \
+ FormSearch.h \
+ FormSendto.C \
+ FormSendto.h \
+ FormShowFile.C \
+ FormShowFile.h \
+ FormSpellchecker.C \
+ FormSpellchecker.h \
FormTabular.C \
FormTabular.h \
- form_tabular.C \
- form_tabular.h \
+ FormTabularCreate.C \
+ FormTabularCreate.h \
+ FormTexinfo.C \
+ FormTexinfo.h \
+ FormText.C \
+ FormText.h \
+ FormThesaurus.C \
+ FormThesaurus.h \
FormToc.C \
FormToc.h \
- form_toc.C \
- form_toc.h \
FormUrl.C \
FormUrl.h \
- form_url.C \
- form_url.h \
- input_validators.h \
- input_validators.c \
- Menubar_pimpl.C \
- Menubar_pimpl.h \
+ FormVCLog.C \
+ FormVCLog.h \
+ FormVSpace.C \
+ FormVSpace.h \
+ FormWrap.C \
+ FormWrap.h \
+ LyXKeySymFactory.C \
+ LyXScreenFactory.C \
+ XFormsMenubar.C \
+ XFormsMenubar.h \
RadioButtonGroup.C \
RadioButtonGroup.h \
- Toolbar_pimpl.C \
- Toolbar_pimpl.h \
- xform_macros.h
+ XFormsToolbar.C \
+ XFormsToolbar.h \
+ Tooltips.C \
+ Tooltips.h \
+ WorkAreaFactory.C \
+ XFormsView.C \
+ XFormsView.h \
+ XLyXKeySym.C \
+ XLyXKeySym.h \
+ XMiniBuffer.C \
+ XMiniBuffer.h \
+ XPainter.C \
+ XPainter.h \
+ XWorkArea.h \
+ XWorkArea.C
+
+lyx_forms.h: stamp-forms
+ @:
+
+stamp-forms: lyx_forms.h-tmp
+ cmp -s $< lyx_forms.h || {\
+ rm -f lyx_forms.h ;\
+ cp $< lyx_forms.h ;\
+ }
+ echo timestamp > $@
-# These still have to be added. Sooner or later. ARRae-20000411
-# GUI_defaults.C \
-# GUI_initialize.C \
-# GUI_postlyxrc.C \
-# GUI_runtime.C \
-# GUI_applymenu.C
+lyx_xpm.h: stamp-xpm
+ @:
-# just copied from old lyx repository
-dist-hook:
- for subdir in $(LYXDATADIRS) ; do \
- test -d $(distdir)/$$subdir \
- || mkdir $(distdir)/$$subdir \
- || exit 1; \
- chmod 777 $(distdir)/$$subdir; \
- list=`(cd $(srcdir)/$$subdir && ls -1 | grep -v CVS)`; \
- echo $$list ; \
- for fil in $$list ; do \
- cp -p $(srcdir)/$$subdir/$$fil $(distdir)/$$subdir ; \
- done ; \
- done
+stamp-xpm: lyx_xpm.h-tmp
+ cmp -s $< lyx_xpm.h || {\
+ rm -f lyx_xpm.h ;\
+ cp $< lyx_xpm.h ;\
+ }
+ echo timestamp > $@