New files.
1998-07-29 Martin Baulig <martin@home-of-linux.org> * dynamic.c, dynamic_names.c: New files. * Makefile.am: New file. Creates `libgtop.so' and `libnames.so' which will be installed in `$(datadir)/guile/libgtop'; just do a `(use-modules (libgtop libgtop) (libgtop names))' in guile to use them.
This commit is contained in:
committed by
Martin Baulig
parent
8b9b984701
commit
e2196888ca
@@ -1 +1,3 @@
|
|||||||
reference.sgml
|
reference.sgml
|
||||||
|
Makefile.in
|
||||||
|
Makefile
|
||||||
|
51
guile/Makefile.am
Normal file
51
guile/Makefile.am
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
|
||||||
|
|
||||||
|
CFLAGS = -Wall -W @CFLAGS@
|
||||||
|
|
||||||
|
sitedir = $(datadir)/guile/site
|
||||||
|
libgtopmoduledir = $(datadir)/guile/libgtop
|
||||||
|
|
||||||
|
libgtopmodule_LTLIBRARIES = libgtop.la libnames.la
|
||||||
|
|
||||||
|
libgtop_la_SOURCES = dynamic.c
|
||||||
|
|
||||||
|
libnames_la_SOURCES = dynamic_names.c
|
||||||
|
|
||||||
|
libgtop_la_LIBADD = ../sysdeps/guile/guile.lo \
|
||||||
|
../lib/init.lo \
|
||||||
|
../lib/open.lo \
|
||||||
|
../lib/close.lo \
|
||||||
|
../lib/command.lo \
|
||||||
|
../lib/read.lo \
|
||||||
|
../lib/read_data.lo \
|
||||||
|
../lib/write.lo \
|
||||||
|
../lib/lib.lo \
|
||||||
|
../lib/parameter.lo \
|
||||||
|
../lib/sysdeps.lo \
|
||||||
|
../sysdeps/common/error.lo \
|
||||||
|
../sysdeps/common/fsusage.lo \
|
||||||
|
../sysdeps/common/gnuslib.lo \
|
||||||
|
../sysdeps/common/mountlist.lo \
|
||||||
|
../sysdeps/common/xmalloc.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/close.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/proclist.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/sem_limits.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/cpu.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/procmem.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/shm_limits.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/loadavg.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/procsegment.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/siglist.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/mem.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/procsignal.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/swap.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/msg_limits.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/procstate.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/uptime.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/open.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/proctime.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/prockernel.lo \
|
||||||
|
../sysdeps/@sysdeps_dir@/procuid.lo
|
||||||
|
|
||||||
|
libnames_la_LIBADD = ../sysdeps/guile/names/guile-names.lo
|
||||||
|
|
29
guile/dynamic.c
Normal file
29
guile/dynamic.c
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
/* $Id$ */
|
||||||
|
|
||||||
|
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||||
|
This file is part of the Gnome Top Library.
|
||||||
|
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||||
|
|
||||||
|
The Gnome Top Library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public License as
|
||||||
|
published by the Free Software Foundation; either version 2 of the
|
||||||
|
License, or (at your option) any later version.
|
||||||
|
|
||||||
|
The Gnome Top Library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||||
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <glibtop.h>
|
||||||
|
#include <libguile/dynl.h>
|
||||||
|
|
||||||
|
void
|
||||||
|
scm_init_libgtop_libgtop_module (void)
|
||||||
|
{
|
||||||
|
scm_register_module_xxx ("libgtop libgtop", glibtop_boot_guile);
|
||||||
|
}
|
29
guile/dynamic_names.c
Normal file
29
guile/dynamic_names.c
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
/* $Id$ */
|
||||||
|
|
||||||
|
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||||
|
This file is part of the Gnome Top Library.
|
||||||
|
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||||
|
|
||||||
|
The Gnome Top Library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public License as
|
||||||
|
published by the Free Software Foundation; either version 2 of the
|
||||||
|
License, or (at your option) any later version.
|
||||||
|
|
||||||
|
The Gnome Top Library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||||
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <glibtop.h>
|
||||||
|
#include <libguile/dynl.h>
|
||||||
|
|
||||||
|
void
|
||||||
|
scm_init_libgtop_names_module (void)
|
||||||
|
{
|
||||||
|
scm_register_module_xxx ("libgtop names", glibtop_boot_guile_names);
|
||||||
|
}
|
Reference in New Issue
Block a user