]> git.lyx.org Git - lyx.git/commitdiff
begin work on gui compiling
authorLars Gullik Bjønnes <larsbj@gullik.org>
Fri, 1 Mar 2002 15:08:12 +0000 (15:08 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Fri, 1 Mar 2002 15:08:12 +0000 (15:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3626 a592a061-630c-0410-9148-cb99ea01b6c8

configure.in
src/frontends/Makefile.am

index 1e88d2ff7b0b4560eb32ee8e4e4d4b99485525b5..0b3cb7544e8fa273242123beb916d814a90eccf9 100644 (file)
@@ -186,8 +186,9 @@ dnl problems with the AC_REQUIRE contained in KDE_DO_IT_ALL.
 case "$lyx_use_frontend" in 
   xforms) 
   # for now don't set it for xforms as this is always entered
-    FRONTEND=""
-    FRONTEND_GUILIB="xforms/libxforms.o";;
+    FRONTEND="xforms"
+    FRONTEND_GUILIB="xforms/*.lo"
+    FRONTEND_INCLUDES="-I\$(srcdir)/xforms";;
   gnome)    
     AM_PATH_GTKMM(1.2.1,,
         AC_MSG_ERROR(Cannot find GTK--: Please install Version 1.2.1+))
@@ -205,15 +206,15 @@ dnl Ensure gnome-config is available...
            AC_MSG_ERROR(Did not find libGlade installed)
        fi
                
-    FRONTEND="gnome"
-    FRONTEND_GUILIB="gnome/libgnome.la"
+    FRONTEND="xforms gnome"
+    FRONTEND_GUILIB="gnome/*.lo"
     FRONTEND_LDFLAGS="\$(GNOMEMM_LIBDIR)"
     FRONTEND_INCLUDES="-I\${srcdir}/gnome \$(GNOMEMM_INCLUDEDIR) \$(GTKMM_CFLAGS) `gnome-config --cflags libglade gnomeui`"
     FRONTEND_LIBS="\$(GNOMEMM_LIBS) \$(GTKMM_LIBS) `gnome-config --libs libglade gnomeui`";;
   qt2)
     QT2_DO_IT_ALL
-    FRONTEND="qt2"
-    FRONTEND_GUILIB="qt2/libqt2.la"
+    FRONTEND="xforms qt2"
+    FRONTEND_GUILIB="qt2/*.lo"
     FRONTEND_LDFLAGS="\$(QT2_LDFLAGS)"
     FRONTEND_INCLUDES="-I\${srcdir}/qt2 \$(QT2_INCLUDES)"
     FRONTEND_LIBS="\$(QT2_LIBS)";;
index ee31fca5683b2035b6a06f9e106a9774f849eb75..c34d6260f434b46f919d43ffb80e95e35e6088c9 100644 (file)
@@ -4,20 +4,17 @@ MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
 # xforms has to be fixed here as we still need object files in this directory
 # for the compilation of other frontends, so until that we have to let this
 # here.
-SUBDIRS = controllers xforms @FRONTEND@
+SUBDIRS = controllers @FRONTEND@
 ETAGS_ARGS = --lang=c++
 BOOST_INCLUDES = -I$(top_srcdir)/boost
-INCLUDES = ${FRONTEND_INCLUDES} -I${srcdir}/.. -I${srcdir}/xforms ${SIGC_CFLAGS} $(BOOST_INCLUDES)
+INCLUDES = $(FRONTEND_INCLUDES) -I$(srcdir)/..  $(SIGC_CFLAGS) $(BOOST_INCLUDES)
 LIBS =
 noinst_LTLIBRARIES = libfrontends.la
 
-libfrontends_la_LIBADD= \
-       xforms/*.lo \
+libfrontends_la_LIBADD= @FRONTEND_GUILIB@ \
        controllers/*.lo
 
-libfrontends_la_DEPENDENCIES = \
-       xforms/*.lo \
-       controllers/*.lo
+libfrontends_la_DEPENDENCIES = $(libfrontends_la_LIBADD)
 
 libfrontends_la_SOURCES=\
        Alert.C \
@@ -42,7 +39,7 @@ libfrontends.la: libfrontends.o
 libfrontends.o: $(libfrontends_la_OBJECTS) $(libfrontends_la_DEPENDENCIES)
        $(CXXLINK) $(libfrontends_la_OBJECTS) $(libfrontends_la_LIBADD)
 
-EXTRA_DIST = qt2 gnome
+EXTRA_DIST = xforms qt2 gnome
 
 dist-hook:
        @cd $(distdir) ; \