Files
elk/lib/xm/xt/build
T
sam 141bca2769 elk (3.0-10) unstable; urgency=low
* Updated debhelper build dependency to >>3.0.0.
  * Shared library handling:
    + Extended load.c:General_Load() to open shared libraries.
    + Makefiles now build shared libraries.
    + Stopped distributing .o files and replaced them with the .so shared
      libraries; built the Unix, X11, Xaw and Motif extensions.
    + The interpreter is no longer linked with -lgdbm, gdbm.so is instead.
  * Replaced standalone.o and module.o with their .a equivalents.
  * Made the 'debian/arch-config' sourcing errors non-fatal so that make
    distclean works in the src/ directory.
  * Changed SCM_DIR again, from /usr/share/elk/scm to /usr/share/elk, and
    ditto with OBJ_DIR, from /usr/lib/elk/obj to /usr/lib/elk.
  * Defaulted "garbage-collect-notify?" and "autoload-notify?" to #f.
 -- Samuel Hocevar <sam@zoy.org>  Tue,  1 Apr 2003 23:34:26 +0200


git-svn-id: svn://svn.zoy.org/elk/trunk@4 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-19 19:25:03 +00:00

77 lines
1.7 KiB
Python
Executable File

. ../../../config/system
. ../../../config/site
if [ _$load_obj = _ld -o _$load_obj = _dl ]; then
force_load_xm="-u ${syms_begin_with}XmIsMotifWMRunning"
fi
# In HP-UX, the Motif libraries must be linked with xt-motif.o instead
# of placing them into the load-libraries (I don't know why):
if [ _$load_obj = _shl ]; then
motif_link_libs="$libxmotif"
else
motif_link_libs=
fi
echo Building Makefile.local...
cat <<EOT >Makefile.local
# This Makefile was produced by running ./build in this directory.
SHELL=/bin/sh
CC= ${cc-cc}
CFLAGS= $cflags $obj_cflags
LINTFLAGS= $lintflags
XTDIR= ../../xt
O= \$(XTDIR)/accelerator.o\\
\$(XTDIR)/action.o\\
\$(XTDIR)/callback.o\\
\$(XTDIR)/class.o\\
\$(XTDIR)/classname.o\\
\$(XTDIR)/context.o\\
\$(XTDIR)/converter.o\\
\$(XTDIR)/error.o\\
\$(XTDIR)/function.o\\
\$(XTDIR)/identifier.o\\
\$(XTDIR)/init.o\\
\$(XTDIR)/objects.o\\
\$(XTDIR)/popup.o\\
\$(XTDIR)/resource.o\\
\$(XTDIR)/translation.o\\
\$(XTDIR)/widget.o
.c.o:
@echo ""
@echo === Must make files in \$(XTDIR) first\! ===
@echo ""
xt-motif.so: \$(O) ../../xlib/xlib.so
ld -shared -o \$@ \$(O) ../../xlib/*.o $force_load_xm $libxmotif -lc
xt-motif.pre: \$(O) ../../xlib/xlib.pre
../../../scripts/makedl \$@ \$(O) ../../xlib/*.o $motif_link_libs
install: xt-motif.so
-@if [ ! -d $install_dir/lib ]; then \\
echo mkdir $install_dir/lib; \\
mkdir $install_dir/lib; \\
fi
-@if [ ! -d $install_dir/lib/elk ]; then \\
echo mkdir $install_dir/lib/elk; \\
mkdir $install_dir/lib/elk; \\
fi
cp xt-motif.so $install_dir/lib/elk
lint:
clean:
rm -f *.so *.o xt-motif.pre core
distclean:
rm -f *.so *.o xt-motif.pre core Makefile.local
EOT