* Distribute headers in /usr/include/elk.

* Build the Unix plugin.


git-svn-id: svn://svn.zoy.org/elk/trunk@43 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
sam 2003-08-25 16:00:50 +00:00
parent 15acde4d28
commit b884d039b6
5 changed files with 29 additions and 140 deletions

View File

@ -373,6 +373,7 @@ AC_OUTPUT([
examples/Makefile
lib/Makefile
lib/misc/Makefile
lib/unix/Makefile
scm/Makefile
src/Makefile
util/Makefile

View File

@ -1,5 +1,5 @@
NULL =
nodist_HEADERS = \
pkginclude_HEADERS = \
compat.h \
cstring.h \
exception.h \

View File

@ -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

27
lib/unix/Makefile.am Normal file
View File

@ -0,0 +1,27 @@
NULL =
EXTRA_DIST = TODO
pkglib_LTLIBRARIES = unix.la
unix_la_SOURCES = \
error.c \
fdescr.c \
file.c \
lock.c \
misc.c \
passwd.c \
process.c \
signal.c \
system.c \
temp.c \
time.c \
unix.c \
wait.c \
$(NULL)
unix_la_LDFLAGS = -module -avoid-version
unix_la_LIBADD = $(top_builddir)/src/libelk.la
extensions_HEADERS = unix.h
extensionsdir = $(pkgincludedir)/extensions

View File

@ -1,115 +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\\
unix.h
C= error.c\\
fdescr.c\\
file.c\\
lock.c\\
misc.c\\
passwd.c\\
process.c\\
signal.c\\
system.c\\
temp.c\\
time.c\\
unix.c\\
wait.c
O= error.o\\
fdescr.o\\
file.o\\
lock.o\\
misc.o\\
passwd.o\\
process.o\\
signal.o\\
system.o\\
temp.o\\
time.o\\
unix.o\\
wait.o
all: \$(O) unix.so
.c.o:
\$(CC) \$(CFLAGS) -I\$(INC) -c \$<
error.o: \$(H) error.c
fdescr.o: \$(H) fdescr.c
file.o: \$(H) file.c
lock.o: \$(H) lock.c
misc.o: \$(H) misc.c
passwd.o: \$(H) passwd.c
process.o: \$(H) process.c
signal.o: \$(H) signal.c
system.o: \$(H) system.c
temp.o: \$(H) temp.c
time.o: \$(H) time.c
unix.o: \$(H) unix.c
wait.o: \$(H) wait.c
unix.pre: \$(O)
../../scripts/makedl \$@ \$(O)
unix.so: \$(O)
gcc -shared -o \$@ \$(O) -lc
install: unix.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 unix.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 unix.h $install_dir/include/elk/extensions
lint:
lint \$(LINTFLAGS) -I\$(INC) \$(C)
clean:
rm -f *.so *.o unix.pre core
distclean:
rm -f *.so *.o unix.pre core lint.out Makefile.local
EOT