if test -n "$GIT" -a -n "$($GIT symbolic-ref HEAD 2>/dev/null)"; then
TREE_VERSION="$($GIT tag|tail -n1|tr -d v)"
GIT_VERSION="$($GIT describe)"
-else
+ IN_GIT="1"
+fi
+if test -z "$TREE_VERSION"; then
TREE_VERSION="22.1.14"
- GIT_VERSION="no_git_version"
+ if test -n "$IN_GIT"; then
+ echo "If you cloned this branch into your own you should issue: git tag -s v${TREE_VERSION}.<your branch_name>"
+ fi
+fi
+if test -z "$GIT_VERSION"; then
+ GIT_VERSION="${TREE_VERSION}-no_git_version"
fi
emacs_major_version="$(echo $TREE_VERSION|cut -d. -f1)"
# because libsxemem already is there
endif
if DESCEND_LWLIB
-nodumplibs += libsxeX.a
-noinst_nodumplibs += libsxeX.a
+nodumplibs += $(builddir)/ui/X11/libsxeX.a
endif
SUBDIRS += $(sxe_subdirs)
libcruft_a_DEPENDENCIES = $(libcruft_a_LIBADD)
all_sources += $(libcruft_a_sources) $(extra_objs:.o=.c)
-## just a trick :( we create these libraries to get the object files
-if DESCEND_LWLIB
-noinst_LIBRARIES += libTopLevelEmacsShell.a libTransientEmacsShell.a
-libTopLevelEmacsShell_a_SOURCES = EmacsShell-sub.c
-libTopLevelEmacsShell_a_CFLAGS = -DDEFINE_TOP_LEVEL_EMACS_SHELL
-libTopLevelEmacsShell_a_CPPFLAGS = $(AM_CPPFLAGS) $(X_CFLAGS)
-libTransientEmacsShell_a_SOURCES = EmacsShell-sub.c
-libTransientEmacsShell_a_CFLAGS = -DDEFINE_TRANSIENT_EMACS_SHELL
-libTransientEmacsShell_a_CPPFLAGS = $(AM_CPPFLAGS) $(X_CFLAGS)
-endif
-libsxeX_a_headers = \
- EmacsFrame.h EmacsFrameP.h EmacsManager.h EmacsManagerP.h \
- EmacsShell.h EmacsShellP.h ExternalClient.h ExternalClientP.h \
- ExternalShell.h ExternalShellP.h xintrinsic.h xintrinsicp.h
-libsxeX_a_sources = \
- EmacsFrame.c EmacsShell.c EmacsManager.c
-if WITH_EXTW
-libsxeX_a_sources += ExternalShell.c
-## extw-Xt-nonshared.c extw-Xlib-nonshared.c where are these????
-endif
-libsxeX_a_SOURCES = $(libsxeX_a_headers) $(libsxeX_a_sources)
-libsxeX_a_LIBADD = \
- $(libTransientEmacsShell_a_OBJECTS) \
- $(libTopLevelEmacsShell_a_OBJECTS)
-libsxeX_a_CPPFLAGS = $(AM_CPPFLAGS) $(X_CFLAGS)
-libsxeX_a_DEPENDENCIES = libTopLevelEmacsShell.a libTransientEmacsShell.a
-all_sources += $(libsxeX_a_sources) $(libsxeX_a_LIBADD:.o=.c)
### custom rules
SXEMACS = $(bldsrcdir)/sxemacs
#include "ui/X11/console-x.h"
#include "ui/device.h"
#include "ui/frame.h"
-#include "EmacsFrame.h"
+#include "ui/X11/EmacsFrame.h"
#include <Xm/Xm.h>
#ifndef XIM_MOTIF
noinst_LIBRARIES=
header_HEADERS=$(acgen_headers)
+## just a trick :( we create these libraries to get the object files
+if DESCEND_LWLIB
+noinst_LIBRARIES += libTopLevelEmacsShell.a libTransientEmacsShell.a
+libTopLevelEmacsShell_a_SOURCES = EmacsShell-sub.c
+libTopLevelEmacsShell_a_CFLAGS = -DDEFINE_TOP_LEVEL_EMACS_SHELL
+libTopLevelEmacsShell_a_CPPFLAGS = $(AM_CPPFLAGS) $(X_CFLAGS)
+libTransientEmacsShell_a_SOURCES = EmacsShell-sub.c
+libTransientEmacsShell_a_CFLAGS = -DDEFINE_TRANSIENT_EMACS_SHELL
+libTransientEmacsShell_a_CPPFLAGS = $(AM_CPPFLAGS) $(X_CFLAGS)
+endif
+libsxeX_a_headers = \
+ EmacsFrame.h EmacsFrameP.h EmacsManager.h EmacsManagerP.h \
+ EmacsShell.h EmacsShellP.h ExternalClient.h ExternalClientP.h \
+ ExternalShell.h ExternalShellP.h xintrinsic.h xintrinsicp.h
+libsxeX_a_sources = \
+ EmacsFrame.c EmacsShell.c EmacsManager.c
+if WITH_EXTW
+libsxeX_a_sources += ExternalShell.c
+## extw-Xt-nonshared.c extw-Xlib-nonshared.c where are these????
+endif
+libsxeX_a_SOURCES = $(libsxeX_a_headers) $(libsxeX_a_sources)
+libsxeX_a_LIBADD = \
+ $(libTransientEmacsShell_a_OBJECTS) \
+ $(libTopLevelEmacsShell_a_OBJECTS)
+libsxeX_a_CPPFLAGS = $(AM_CPPFLAGS) $(X_CFLAGS)
+libsxeX_a_DEPENDENCIES = libTopLevelEmacsShell.a libTransientEmacsShell.a
+noinst_LIBRARIES += libsxeX.a
+all_sources += $(libsxeX_a_sources) $(libsxeX_a_LIBADD:.o=.c)
+
libsxeuiX11_a_headers = \
balloon_help.h \
console-x.h extw-Xlib.h extw-Xt.h \
#include <X11/CompositeP.h>
#include <X11/Shell.h>
#ifdef HAVE_WIDGETS
-#include "EmacsManager.h"
+#include "ui/X11/EmacsManager.h"
#endif
#ifdef LWLIB_MENUBARS_LUCID
#include "xlwmenu.h"