* Fixed the build process for all extensions.
git-svn-id: svn://svn.zoy.org/elk/trunk@48 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
parent
8377fb1fe1
commit
659601da1f
|
@ -8,6 +8,7 @@ AM_INIT_AUTOMAKE(elk, 3.99.0)
|
|||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
AC_PROG_CC
|
||||
AM_PROG_CC_C_O
|
||||
AC_PROG_LIBTOOL
|
||||
AC_STDC_HEADERS
|
||||
|
||||
|
@ -377,6 +378,8 @@ AC_OUTPUT([
|
|||
lib/unix/Makefile
|
||||
lib/xaw/Makefile
|
||||
lib/xlib/Makefile
|
||||
lib/xm/Makefile
|
||||
lib/xt/Makefile
|
||||
scm/Makefile
|
||||
scm/slib.scm
|
||||
src/Makefile
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
;;; Drawing area demo
|
||||
|
||||
(require 'motif)
|
||||
(print "loading widgets\n")
|
||||
(load-widgets shell drawing-area)
|
||||
|
||||
(define top (application-initialize 'drawing-area))
|
||||
|
|
|
@ -1 +1 @@
|
|||
SUBDIRS = misc unix xaw xlib #xm xt
|
||||
SUBDIRS = misc unix xaw xlib xm xt
|
||||
|
|
1319
lib/xaw/Makefile
1319
lib/xaw/Makefile
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,42 @@
|
|||
NULL =
|
||||
|
||||
pkglib_xaw_DATA = ALIASES
|
||||
pkglib_xaw_LTLIBRARIES = xaw.la
|
||||
pkglib_xawdir = $(pkglibdir)/xaw
|
||||
|
||||
xaw_la_SOURCES = \
|
||||
ascii.c \
|
||||
box.c \
|
||||
command.c \
|
||||
dialog.c \
|
||||
form.c \
|
||||
grip.c \
|
||||
label.c \
|
||||
list.c \
|
||||
menubutton.c \
|
||||
paned.c \
|
||||
panner.c \
|
||||
porthole.c \
|
||||
repeater.c \
|
||||
scrollbar.c \
|
||||
shell.c \
|
||||
simplemenu.c \
|
||||
sme.c \
|
||||
smebsb.c \
|
||||
smeline.c \
|
||||
stripchart.c \
|
||||
toggle.c \
|
||||
tree.c \
|
||||
viewport.c \
|
||||
$(NULL)
|
||||
xaw_la_CFLAGS = -I/usr/X11R6/include -I$(srcdir)/../xlib
|
||||
xaw_la_LDFLAGS = -module -avoid-version
|
||||
xaw_la_LIBADD = $(top_builddir)/src/libelk.la -L/usr/X11R6/lib -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11
|
||||
|
||||
.d.c:
|
||||
$(top_builddir)/src/elk -p .:$(top_srcdir)/scm:$(srcdir)/../xt -l mkwidget.scm $< $@ xaw
|
||||
|
||||
clean: clean-local
|
||||
clean-local:
|
||||
-rm -f *.c
|
||||
|
219
lib/xaw/build
219
lib/xaw/build
|
@ -1,219 +0,0 @@
|
|||
. ../../config/system
|
||||
. ../../config/site
|
||||
|
||||
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
|
||||
SCMFLAGS= -p .:../../scm:../xt
|
||||
|
||||
INC= ../../include
|
||||
|
||||
H= \$(INC)/compat.h\\
|
||||
\$(INC)/config.h\\
|
||||
\$(INC)/cstring.h\\
|
||||
\$(INC)/exception.h\\
|
||||
\$(INC)/extern.h\\
|
||||
\$(INC)/funcproto.h\\
|
||||
\$(INC)/gc.h\\
|
||||
\$(INC)/misc.h\\
|
||||
\$(INC)/object.h\\
|
||||
\$(INC)/param.h\\
|
||||
\$(INC)/stkmem.h\\
|
||||
\$(INC)/type.h\\
|
||||
../xlib/xlib.h\\
|
||||
../xt/xt.h
|
||||
|
||||
O= ascii.o\\
|
||||
box.o\\
|
||||
command.o\\
|
||||
dialog.o\\
|
||||
form.o\\
|
||||
grip.o\\
|
||||
label.o\\
|
||||
list.o\\
|
||||
menubutton.o\\
|
||||
paned.o\\
|
||||
panner.o\\
|
||||
porthole.o\\
|
||||
repeater.o\\
|
||||
scrollbar.o\\
|
||||
shell.o\\
|
||||
simplemenu.o\\
|
||||
sme.o\\
|
||||
smebsb.o\\
|
||||
smeline.o\\
|
||||
stripchart.o\\
|
||||
toggle.o\\
|
||||
tree.o\\
|
||||
viewport.o
|
||||
|
||||
SO= ascii.so\\
|
||||
box.so\\
|
||||
command.so\\
|
||||
dialog.so\\
|
||||
form.so\\
|
||||
grip.so\\
|
||||
label.so\\
|
||||
list.so\\
|
||||
menubutton.so\\
|
||||
paned.so\\
|
||||
panner.so\\
|
||||
porthole.so\\
|
||||
repeater.so\\
|
||||
scrollbar.so\\
|
||||
shell.so\\
|
||||
simplemenu.so\\
|
||||
sme.so\\
|
||||
smebsb.so\\
|
||||
smeline.so\\
|
||||
stripchart.so\\
|
||||
toggle.so\\
|
||||
tree.so\\
|
||||
viewport.so
|
||||
|
||||
WIDGET_SET= xaw
|
||||
|
||||
.SUFFIXES: .d .c .o
|
||||
|
||||
.c.o:
|
||||
\$(CC) \$(CFLAGS) -I\$(INC) -I../xlib $x11_incl -c \$<
|
||||
../../scripts/makedl \$@ \$@
|
||||
|
||||
.d.c:
|
||||
LD_LIBRARY_PATH=../../src ../../src/elk \$(SCMFLAGS) -l mkwidget.scm \$< \$@ \$(WIDGET_SET)
|
||||
|
||||
.d.o:
|
||||
LD_LIBRARY_PATH=../../src ../../src/elk \$(SCMFLAGS) -l mkwidget.scm \$< \$*.c \$(WIDGET_SET)
|
||||
\$(CC) \$(CFLAGS) -I\$(INC) -I../xlib $x11_incl -c \$*.c
|
||||
../../scripts/makedl \$@ \$@
|
||||
|
||||
all: \$(SO)
|
||||
|
||||
ascii.o: \$(H) ascii.d
|
||||
box.o: \$(H) box.d
|
||||
command.o: \$(H) command.d
|
||||
dialog.o: \$(H) dialog.d
|
||||
form.o: \$(H) form.d
|
||||
grip.o: \$(H) grip.d
|
||||
label.o: \$(H) label.d
|
||||
list.o: \$(H) list.d
|
||||
menubutton.o: \$(H) menubutton.d
|
||||
paned.o: \$(H) paned.d
|
||||
panner.o: \$(H) panner.d
|
||||
porthole.o: \$(H) porthole.d
|
||||
repeater.o: \$(H) repeater.d
|
||||
scrollbar.o: \$(H) scrollbar.d
|
||||
shell.o: \$(H) shell.d
|
||||
simplemenu.o: \$(H) simplemenu.d
|
||||
sme.o: \$(H) sme.d
|
||||
smebsb.o: \$(H) smebsb.d
|
||||
smeline.o: \$(H) smeline.d
|
||||
stripchart.o: \$(H) stripchart.d
|
||||
toggle.o: \$(H) toggle.d
|
||||
tree.o: \$(H) tree.d
|
||||
viewport.o: \$(H) viewport.d
|
||||
|
||||
ascii.so: ascii.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
box.so: box.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
command.so: command.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
dialog.so: dialog.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
form.so: form.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
grip.so: grip.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
label.so: label.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
list.so: list.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
menubutton.so: menubutton.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
paned.so: paned.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
panner.so: panner.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
porthole.so: porthole.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
repeater.so: repeater.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
scrollbar.so: scrollbar.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
shell.so: shell.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
simplemenu.so: simplemenu.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
sme.so: sme.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
smebsb.so: smebsb.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
smeline.so: smeline.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
stripchart.so: stripchart.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
toggle.so: toggle.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
tree.so: tree.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
viewport.so: viewport.o
|
||||
gcc -shared -o \$@ \$< $libxaw -lc
|
||||
|
||||
|
||||
install: \$(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
|
||||
-@if [ ! -d $install_dir/lib/elk/xaw ]; then \\
|
||||
echo mkdir $install_dir/lib/elk/xaw; \\
|
||||
mkdir $install_dir/lib/elk/xaw; \\
|
||||
fi
|
||||
@for i in \$(SO) ALIASES ;\\
|
||||
do \\
|
||||
echo cp \$\$i $install_dir/lib/elk/xaw; \\
|
||||
cp \$\$i $install_dir/lib/elk/xaw; \\
|
||||
done
|
||||
|
||||
lint:
|
||||
lint \$(LINTFLAGS) -I\$(INC) -I../xlib $x11_incl *.c
|
||||
|
||||
clean:
|
||||
rm -f *.so *.o *.c core
|
||||
|
||||
distclean:
|
||||
rm -f *.so *.o *.c core lint.out Makefile.local
|
||||
EOT
|
|
@ -0,0 +1,25 @@
|
|||
SOURCES_XLIB = \
|
||||
../xlib/client.c \
|
||||
../xlib/color.c \
|
||||
../xlib/colormap.c \
|
||||
../xlib/cursor.c \
|
||||
../xlib/display.c \
|
||||
../xlib/error.c \
|
||||
../xlib/event.c \
|
||||
../xlib/extension.c \
|
||||
../xlib/font.c \
|
||||
../xlib/gcontext.c \
|
||||
../xlib/grab.c \
|
||||
../xlib/graphics.c \
|
||||
../xlib/init.c \
|
||||
../xlib/key.c \
|
||||
../xlib/objects.c \
|
||||
../xlib/pixel.c \
|
||||
../xlib/pixmap.c \
|
||||
../xlib/property.c \
|
||||
../xlib/text.c \
|
||||
../xlib/type.c \
|
||||
../xlib/util.c \
|
||||
../xlib/window.c \
|
||||
../xlib/wm.c \
|
||||
$(NULL)
|
|
@ -1,34 +1,12 @@
|
|||
NULL =
|
||||
|
||||
include Include.am
|
||||
|
||||
EXTRA_DIST = MISSING
|
||||
|
||||
pkglib_LTLIBRARIES = xlib.la
|
||||
|
||||
xlib_la_SOURCES = \
|
||||
client.c \
|
||||
color.c \
|
||||
colormap.c \
|
||||
cursor.c \
|
||||
display.c \
|
||||
error.c \
|
||||
event.c \
|
||||
extension.c \
|
||||
font.c \
|
||||
gcontext.c \
|
||||
grab.c \
|
||||
graphics.c \
|
||||
init.c \
|
||||
key.c \
|
||||
objects.c \
|
||||
pixel.c \
|
||||
pixmap.c \
|
||||
property.c \
|
||||
text.c \
|
||||
type.c \
|
||||
util.c \
|
||||
window.c \
|
||||
wm.c \
|
||||
$(NULL)
|
||||
xlib_la_SOURCES = $(SOURCES_XLIB)
|
||||
xlib_la_CFLAGS = -I/usr/X11R6/include
|
||||
xlib_la_LDFLAGS = -module -avoid-version
|
||||
xlib_la_LIBADD = $(top_builddir)/src/libelk.la -L/usr/X11R6/lib -lX11
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
SHELL=/bin/sh
|
||||
MAKE=make
|
||||
|
||||
all: default
|
||||
|
||||
Makefile.local: build ../../config/system ../../config/site
|
||||
$(SHELL) ./build
|
||||
|
||||
default: Makefile.local
|
||||
$(MAKE) -f Makefile.local
|
||||
|
||||
install: Makefile.local
|
||||
$(MAKE) -f Makefile.local install
|
||||
|
||||
localize: Makefile.local
|
||||
|
||||
lint: Makefile.local
|
||||
$(MAKE) -f Makefile.local lint
|
||||
|
||||
clean: Makefile.local
|
||||
$(MAKE) -f Makefile.local clean
|
||||
|
||||
distclean: Makefile.local
|
||||
$(MAKE) -f Makefile.local distclean
|
|
@ -0,0 +1,56 @@
|
|||
NULL =
|
||||
|
||||
AUTOMAKE_OPTIONS = subdir-objects
|
||||
|
||||
include ../xlib/Include.am
|
||||
include ../xt/Include.am
|
||||
|
||||
pkglib_xm_DATA = ALIASES
|
||||
pkglib_xm_LTLIBRARIES = xm.la
|
||||
pkglib_xmdir = $(pkglibdir)/xm
|
||||
|
||||
xm_la_SOURCES = \
|
||||
arrow-button.c \
|
||||
bulletin-brd.c \
|
||||
cascade-btn.c \
|
||||
command.c \
|
||||
drawing-area.c \
|
||||
drawn-button.c \
|
||||
file-selectn.c \
|
||||
form.c \
|
||||
frame.c \
|
||||
label.c \
|
||||
list.c \
|
||||
main-window.c \
|
||||
message-box.c \
|
||||
paned-window.c \
|
||||
push-button.c \
|
||||
row-column.c \
|
||||
scale.c \
|
||||
scroll-bar.c \
|
||||
scrolled-win.c \
|
||||
selectn-box.c \
|
||||
separator.c \
|
||||
shell.c \
|
||||
support.c \
|
||||
text.c \
|
||||
toggle-btn.c \
|
||||
$(NULL)
|
||||
xm_la_CFLAGS = -I/usr/X11R6/include -I/usr/include/Xm -I$(srcdir)/../xlib
|
||||
xm_la_LDFLAGS = -module -avoid-version -u XmIsMotifWMRunning
|
||||
xm_la_LIBADD = $(top_builddir)/src/libelk.la -L/usr/X11R6/lib -lXm -lXmu -lXt -lSM -lICE -lXext -lX11
|
||||
|
||||
pkglib_LTLIBRARIES = xt-motif.la
|
||||
|
||||
xt_motif_la_SOURCES = $(SOURCES_XT) $(SOURCES_XLIB)
|
||||
xt_motif_la_CFLAGS = -I/usr/include/Xm -I/usr/X11R6/include -I$(srcdir)/../xlib
|
||||
xt_motif_la_LDFLAGS = -module -avoid-version
|
||||
xt_motif_la_LIBADD = $(top_builddir)/src/libelk.la -L/usr/X11R6/lib -lXm -lXmu -lXt -lSM -lICE -lXext -lX11
|
||||
|
||||
.d.c:
|
||||
$(top_builddir)/src/elk -p .:$(top_srcdir)/scm:$(srcdir)/../xt -l mkwidget.scm $< $@ xm
|
||||
|
||||
clean: clean-local
|
||||
clean-local:
|
||||
-rm -f *.c
|
||||
|
233
lib/xm/build
233
lib/xm/build
|
@ -1,233 +0,0 @@
|
|||
. ../../config/system
|
||||
. ../../config/site
|
||||
|
||||
sys_incl="$x11_incl $motif_incl"
|
||||
|
||||
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 $motif_cflags
|
||||
LINTFLAGS= $lintflags
|
||||
SCMFLAGS= -p .:../../scm:../xt
|
||||
|
||||
INC= ../../include
|
||||
|
||||
H= \$(INC)/compat.h\\
|
||||
\$(INC)/config.h\\
|
||||
\$(INC)/cstring.h\\
|
||||
\$(INC)/exception.h\\
|
||||
\$(INC)/extern.h\\
|
||||
\$(INC)/funcproto.h\\
|
||||
\$(INC)/gc.h\\
|
||||
\$(INC)/misc.h\\
|
||||
\$(INC)/object.h\\
|
||||
\$(INC)/param.h\\
|
||||
\$(INC)/stkmem.h\\
|
||||
\$(INC)/type.h\\
|
||||
../xlib/xlib.h\\
|
||||
../xt/xt.h
|
||||
|
||||
O= arrow-button.o\\
|
||||
bulletin-brd.o\\
|
||||
cascade-btn.o\\
|
||||
command.o\\
|
||||
drawing-area.o\\
|
||||
drawn-button.o\\
|
||||
file-selectn.o\\
|
||||
form.o\\
|
||||
frame.o\\
|
||||
label.o\\
|
||||
list.o\\
|
||||
main-window.o\\
|
||||
message-box.o\\
|
||||
paned-window.o\\
|
||||
push-button.o\\
|
||||
row-column.o\\
|
||||
scale.o\\
|
||||
scroll-bar.o\\
|
||||
scrolled-win.o\\
|
||||
selectn-box.o\\
|
||||
separator.o\\
|
||||
shell.o\\
|
||||
support.o\\
|
||||
text.o\\
|
||||
toggle-btn.o
|
||||
|
||||
SO= arrow-button.so\\
|
||||
bulletin-brd.so\\
|
||||
cascade-btn.so\\
|
||||
command.so\\
|
||||
drawing-area.so\\
|
||||
drawn-button.so\\
|
||||
file-selectn.so\\
|
||||
form.so\\
|
||||
frame.so\\
|
||||
label.so\\
|
||||
list.so\\
|
||||
main-window.so\\
|
||||
message-box.so\\
|
||||
paned-window.so\\
|
||||
push-button.so\\
|
||||
row-column.so\\
|
||||
scale.so\\
|
||||
scroll-bar.so\\
|
||||
scrolled-win.so\\
|
||||
selectn-box.so\\
|
||||
separator.so\\
|
||||
shell.so\\
|
||||
support.so\\
|
||||
text.so\\
|
||||
toggle-btn.so
|
||||
|
||||
WIDGET_SET= xm
|
||||
|
||||
.SUFFIXES: .d .c .o
|
||||
|
||||
.c.o:
|
||||
\$(CC) \$(CFLAGS) -I\$(INC) -I../xlib $sys_incl -c \$<
|
||||
../../scripts/makedl \$@ \$@
|
||||
|
||||
.d.c:
|
||||
LD_LIBRARY_PATH=../../src ../../src/elk \$(SCMFLAGS) -l mkwidget.scm \$< \$@ \$(WIDGET_SET)
|
||||
|
||||
.d.o:
|
||||
LD_LIBRARY_PATH=../../src ../../src/elk \$(SCMFLAGS) -l mkwidget.scm \$< \$*.c \$(WIDGET_SET)
|
||||
\$(CC) \$(CFLAGS) -I\$(INC) -I../xlib $sys_incl -c \$*.c
|
||||
../../scripts/makedl \$@ \$@
|
||||
|
||||
all: \$(SO)
|
||||
|
||||
arrow-button.o: \$(H) arrow-button.d
|
||||
bulletin-brd.o: \$(H) bulletin-brd.d
|
||||
cascade-btn.o: \$(H) cascade-btn.d
|
||||
command.o: \$(H) command.d
|
||||
drawing-area.o: \$(H) drawing-area.d
|
||||
drawn-button.o: \$(H) drawn-button.d
|
||||
file-selectn.o: \$(H) file-selectn.d
|
||||
form.o: \$(H) form.d
|
||||
frame.o: \$(H) frame.d
|
||||
label.o: \$(H) label.d
|
||||
list.o: \$(H) list.d
|
||||
main-window.o: \$(H) main-window.d
|
||||
message-box.o: \$(H) message-box.d
|
||||
paned-window.o: \$(H) paned-window.d
|
||||
push-button.o: \$(H) push-button.d
|
||||
row-column.o: \$(H) row-column.d
|
||||
scale.o: \$(H) scale.d
|
||||
scroll-bar.o: \$(H) scroll-bar.d
|
||||
scrolled-win.o: \$(H) scrolled-win.d
|
||||
selectn-box.o: \$(H) selectn-box.d
|
||||
separator.o: \$(H) separator.d
|
||||
shell.o: \$(H) shell.d
|
||||
support.o: \$(H) support.d
|
||||
text.o: \$(H) text.d
|
||||
toggle-btn.o: \$(H) toggle-btn.d
|
||||
|
||||
arrow-button.so: arrow-button.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
bulletin-brd.so: bulletin-brd.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
cascade-btn.so: cascade-btn.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
command.so: command.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
drawing-area.so: drawing-area.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
drawn-button.so: drawn-button.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
file-selectn.so: file-selectn.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
form.so: form.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
frame.so: frame.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
label.so: label.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
list.so: list.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
main-window.so: main-window.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
message-box.so: message-box.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
paned-window.so: paned-window.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
push-button.so: push-button.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
row-column.so: row-column.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
scale.so: scale.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
scroll-bar.so: scroll-bar.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
scrolled-win.so: scrolled-win.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
selectn-box.so: selectn-box.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
separator.so: separator.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
shell.so: shell.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
support.so: support.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
text.so: text.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
toggle-btn.so: toggle-btn.o
|
||||
gcc -shared -o \$@ \$< $libxmotif -lc
|
||||
|
||||
|
||||
install: \$(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
|
||||
-@if [ ! -d $install_dir/lib/elk/xm ]; then \\
|
||||
echo mkdir $install_dir/lib/elk/xm; \\
|
||||
mkdir $install_dir/lib/elk/xm; \\
|
||||
fi
|
||||
@for i in \$(SO) ALIASES ;\\
|
||||
do \\
|
||||
echo cp \$\$i $install_dir/lib/elk/xm; \\
|
||||
cp \$\$i $install_dir/lib/elk/xm; \\
|
||||
done
|
||||
|
||||
lint:
|
||||
lint \$(LINTFLAGS) -I\$(INC) -I../xlib $sys_incl *.c
|
||||
|
||||
clean:
|
||||
rm -f *.so *.o *.c core
|
||||
|
||||
distclean:
|
||||
rm -f *.so *.o *.c core lint.out Makefile.local
|
||||
EOT
|
|
@ -1,24 +0,0 @@
|
|||
SHELL=/bin/sh
|
||||
MAKE=make
|
||||
|
||||
all: default
|
||||
|
||||
Makefile.local: build ../../../config/system ../../../config/site
|
||||
$(SHELL) ./build
|
||||
|
||||
default: Makefile.local
|
||||
$(MAKE) -f Makefile.local
|
||||
|
||||
install: Makefile.local
|
||||
$(MAKE) -f Makefile.local install
|
||||
|
||||
localize: Makefile.local
|
||||
|
||||
lint: Makefile.local
|
||||
$(MAKE) -f Makefile.local lint
|
||||
|
||||
clean: Makefile.local
|
||||
$(MAKE) -f Makefile.local clean
|
||||
|
||||
distclean: Makefile.local
|
||||
$(MAKE) -f Makefile.local distclean
|
|
@ -1,76 +0,0 @@
|
|||
. ../../../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
|
||||
gcc -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
|
|
@ -0,0 +1,18 @@
|
|||
SOURCES_XT = \
|
||||
../xt/accelerator.c \
|
||||
../xt/action.c \
|
||||
../xt/callback.c \
|
||||
../xt/class.c \
|
||||
../xt/classname.c \
|
||||
../xt/context.c \
|
||||
../xt/converter.c \
|
||||
../xt/error.c \
|
||||
../xt/function.c \
|
||||
../xt/identifier.c \
|
||||
../xt/init.c \
|
||||
../xt/objects.c \
|
||||
../xt/popup.c \
|
||||
../xt/resource.c \
|
||||
../xt/translation.c \
|
||||
../xt/widget.c \
|
||||
$(NULL)
|
|
@ -1,24 +0,0 @@
|
|||
SHELL=/bin/sh
|
||||
MAKE=make
|
||||
|
||||
all: default
|
||||
|
||||
Makefile.local: build ../../config/system ../../config/site
|
||||
$(SHELL) ./build
|
||||
|
||||
default: Makefile.local
|
||||
$(MAKE) -f Makefile.local
|
||||
|
||||
install: Makefile.local
|
||||
$(MAKE) -f Makefile.local install
|
||||
|
||||
localize: Makefile.local
|
||||
|
||||
lint: Makefile.local
|
||||
$(MAKE) -f Makefile.local lint
|
||||
|
||||
clean: Makefile.local
|
||||
$(MAKE) -f Makefile.local clean
|
||||
|
||||
distclean: Makefile.local
|
||||
$(MAKE) -f Makefile.local distclean
|
|
@ -0,0 +1,18 @@
|
|||
NULL =
|
||||
|
||||
include ../xlib/Include.am
|
||||
include ../xt/Include.am
|
||||
|
||||
AUTOMAKE_OPTIONS = subdir-objects
|
||||
EXTRA_DIST = MISSING
|
||||
|
||||
pkglib_LTLIBRARIES = xt.la
|
||||
|
||||
xt_la_SOURCES = $(SOURCES_XT) $(SOURCES_XLIB)
|
||||
xt_la_CFLAGS = -I/usr/X11R6/include -I$(srcdir)/../xlib
|
||||
xt_la_LDFLAGS = -module -avoid-version
|
||||
xt_la_LIBADD = $(top_builddir)/src/libelk.la -L/usr/X11R6/lib -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11
|
||||
|
||||
extensions_HEADERS = xt.h
|
||||
extensionsdir = $(pkgincludedir)/extensions
|
||||
|
125
lib/xt/build
125
lib/xt/build
|
@ -1,125 +0,0 @@
|
|||
. ../../config/system
|
||||
. ../../config/site
|
||||
|
||||
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
|
||||
|
||||
INC= ../../include
|
||||
|
||||
H= \$(INC)/compat.h\\
|
||||
\$(INC)/config.h\\
|
||||
\$(INC)/cstring.h\\
|
||||
\$(INC)/exception.h\\
|
||||
\$(INC)/extern.h\\
|
||||
\$(INC)/funcproto.h\\
|
||||
\$(INC)/gc.h\\
|
||||
\$(INC)/misc.h\\
|
||||
\$(INC)/object.h\\
|
||||
\$(INC)/param.h\\
|
||||
\$(INC)/stkmem.h\\
|
||||
\$(INC)/type.h\\
|
||||
../xlib/xlib.h\\
|
||||
xt.h
|
||||
|
||||
C= accelerator.c\\
|
||||
action.c\\
|
||||
callback.c\\
|
||||
class.c\\
|
||||
classname.c\\
|
||||
context.c\\
|
||||
converter.c\\
|
||||
error.c\\
|
||||
function.c\\
|
||||
identifier.c\\
|
||||
init.c\\
|
||||
objects.c\\
|
||||
popup.c\\
|
||||
resource.c\\
|
||||
translation.c\\
|
||||
widget.c
|
||||
|
||||
O= accelerator.o\\
|
||||
action.o\\
|
||||
callback.o\\
|
||||
class.o\\
|
||||
classname.o\\
|
||||
context.o\\
|
||||
converter.o\\
|
||||
error.o\\
|
||||
function.o\\
|
||||
identifier.o\\
|
||||
init.o\\
|
||||
objects.o\\
|
||||
popup.o\\
|
||||
resource.o\\
|
||||
translation.o\\
|
||||
widget.o
|
||||
|
||||
all: \$(O) xt.so
|
||||
|
||||
.c.o:
|
||||
\$(CC) \$(CFLAGS) -I\$(INC) -I../xlib $x11_incl -c \$<
|
||||
|
||||
accelerator.o: \$(H) accelerator.c
|
||||
action.o: \$(H) action.c
|
||||
callback.o: \$(H) callback.c
|
||||
class.o: \$(H) class.c
|
||||
classname.o: \$(H) classname.c
|
||||
context.o: \$(H) context.c
|
||||
converter.o: \$(H) converter.c
|
||||
error.o: \$(H) error.c
|
||||
function.o: \$(H) function.c
|
||||
identifier.o: \$(H) identifier.c
|
||||
init.o: \$(H) init.c
|
||||
objects.o: \$(H) objects.c
|
||||
popup.o: \$(H) popup.c
|
||||
resource.o: \$(H) resource.c
|
||||
translation.o: \$(H) translation.c
|
||||
widget.o: \$(H) widget.c
|
||||
|
||||
xt.pre: \$(O) ../xlib/xlib.pre
|
||||
../../scripts/makedl \$@ \$(O) ../xlib/*.o
|
||||
|
||||
xt.so: \$(O) ../xlib/xlib.so
|
||||
gcc -shared -o \$@ \$(O) ../xlib/*.o $libxt -lc
|
||||
|
||||
install: xt.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.so $install_dir/lib/elk
|
||||
-@if [ ! -d $install_dir/include ]; then \\
|
||||
echo mkdir $install_dir/include; \\
|
||||
mkdir $install_dir/include; \\
|
||||
fi
|
||||
-@if [ ! -d $install_dir/include/elk ]; then \\
|
||||
echo mkdir $install_dir/include/elk; \\
|
||||
mkdir $install_dir/include/elk; \\
|
||||
fi
|
||||
-@if [ ! -d $install_dir/include/elk/extensions ]; then \\
|
||||
echo mkdir $install_dir/include/elk/extensions; \\
|
||||
mkdir $install_dir/include/elk/extensions; \\
|
||||
fi
|
||||
cp xt.h $install_dir/include/elk/extensions
|
||||
|
||||
lint:
|
||||
lint \$(LINTFLAGS) -I\$(INC) -I../xlib $x11_incl \$(C)
|
||||
|
||||
clean:
|
||||
rm -f *.so *.o xt.pre core
|
||||
|
||||
distclean:
|
||||
rm -f *.so *.o xt.pre core lint.out Makefile.local
|
||||
EOT
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
;; kludge
|
||||
(define site-lib-xt "")
|
||||
(define site-force-load-xm "")
|
||||
(define site-lib-xmotif "")
|
||||
|
||||
(if (feature? 'motif)
|
||||
(fluid-let ((load-libraries
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
; kludge
|
||||
(define site-lib-xaw "")
|
||||
(define site-lib-xmotif "")
|
||||
|
||||
(require 'xt)
|
||||
|
||||
|
@ -44,7 +45,7 @@
|
|||
(if autoload-notify?
|
||||
(format #t "~a~a" file (if (null? (cdr f)) "" " ")))
|
||||
;;(set! wl (cons (format #f "~a/~a.so" widget-subdirectory file)
|
||||
(set! wl (cons (format #f "~a/~a.so" widget-subdirectory "xaw")
|
||||
(set! wl (cons (format #f "~a/~a.so" widget-subdirectory widget-subdirectory)
|
||||
wl))))
|
||||
(if autoload-notify? (format #t "]~%"))
|
||||
`(fluid-let ((load-libraries
|
||||
|
|
Loading…
Reference in New Issue