2000-01-12 Martin Baulig <martin@home-of-linux.org> * include/glibtop/backend.h (glibtop_backend_entry): New type. (glibtop_backend_module): New private type. * lib/backend.c (glibtop_register_backend): This now takes a `glibtop_backend_entry' argument, not a `glibtop_backend_info' one. (glibtop_backend_by_id): Return a `glibtop_backend_entry' type, not a `glibtop_backend_info' one. (glibtop_backend_by_name): Likewise. * lib/init-backends.c: If we have libxml, read all `.backend' files in $(LIBGTOP_BACKEND_DIR), XML parse them and register them via `glibtop_backend_register'. This builds a list of all currently supported backends without actually loading them into memory. * lib/open-backend.c (glibtop_open_backend_l): GModule load the backend if it's not already in memory.
35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
|
|
|
|
INCLUDES = @INCLUDES@
|
|
|
|
lib_LTLIBRARIES = libgtop.la
|
|
|
|
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
|
|
|
|
libgtop_la_LDFLAGS = $(LT_VERSION_INFO)
|
|
libgtop_la_LIBADD = $(LIBGTOP_XML_LIB)
|
|
|
|
glibtopdir = $(includedir)/glibtop
|
|
|
|
glibtop_HEADERS = structures.h
|
|
|
|
BUILT_SOURCES = lib.c structures.h
|
|
|
|
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
|
|
mv lib-t lib.c
|
|
|
|
structures.h: structures.pl $(top_builddir)/config.h \
|
|
$(top_srcdir)/features.def $(top_srcdir)/structures.def
|
|
$(PERL) -I $(top_srcdir)/scripts $(srcdir)/structures.pl \
|
|
$(top_srcdir)/features.def $(top_srcdir)/structures.def \
|
|
structures.h > tmp-s
|
|
mv tmp-s structures.h
|
|
|
|
EXTRA_DIST = lib.pl structures.pl
|
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|