diff --git a/ChangeLog b/ChangeLog index c2feb7f4..1ca26bee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,5 @@ 2000-01-13 Martin Baulig - * lib/open.c (glibtop_open_l): Call glibtop_init_backend () and - _glibtop_open_sysdeps () here. - -2000-01-12 Martin Baulig - * lib/sysdeps-init-freebsd.c: New file. * lib/sysdeps-init-kernel.c: New file. * lib/sysdeps-init-linux.c: New file. @@ -12,6 +7,9 @@ * lib/sysdeps-init-stub-suid.c: New file. * lib/sysdeps-init-stub.c: New file. + * lib/open.c (glibtop_open_l): Call glibtop_init_backend () and + _glibtop_open_sysdeps () here. + * lib/init.c (glibtop_init_s): Call `_glibtop_open_sysdeps'. * include/glibtop/open.h (_glibtop_open_sysdeps): Declare this diff --git a/lib/Makefile.am b/lib/Makefile.am index d15ac1e6..fd94f810 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -4,12 +4,10 @@ INCLUDES = @INCLUDES@ lib_LTLIBRARIES = libgtop.la -sysdeps_init_file = @sysdeps_init_file@ - libgtop_la_SOURCES = init.c open.c close.c lib.c parameter.c \ sysdeps.c errors.c glib-arrays.c \ backend.c init-backends.c open-backend.c \ - $(sysdeps_init_file) + sysdeps-init.c libgtop_la_LDFLAGS = $(LT_VERSION_INFO) libgtop_la_LIBADD = $(LIBGTOP_XML_LIB) @@ -18,7 +16,7 @@ glibtopdir = $(includedir)/glibtop glibtop_HEADERS = structures.h -BUILT_SOURCES = lib.c structures.h +BUILT_SOURCES = lib.c structures.h sysdeps-init.c lib.c: lib.pl $(top_builddir)/config.h $(top_srcdir)/features.def $(top_srcdir)/scripts/c_types.pl $(PERL) -I $(top_srcdir)/scripts $(srcdir)/lib.pl < $(top_srcdir)/features.def > lib-t @@ -31,5 +29,16 @@ structures.h: structures.pl $(top_builddir)/config.h \ structures.h > tmp-s mv tmp-s structures.h +sysdeps-init.c: + @LN_S@ @sysdeps_init_file@ sysdeps-init.c + CLEANFILES = $(BUILT_SOURCES) +EXTRA_DIST = lib.pl structures.pl \ + sysdeps-init-freebsd.c \ + sysdeps-init-kernel.c \ + sysdeps-init-linux.c \ + sysdeps-init-solaris.c \ + sysdeps-init-stub-suid.c \ + sysdeps-init-stub.c +