2000-01-23 Martin Baulig <martin@home-of-linux.org> This is now a LibGTop backend which can be loaded additionally to the normal Linux sysdeps code. * open.c, close.c: Removed. * shm_limits.c, msg_limits.c, sem_limits.c, ppp.c: Removed. * siglist.c, sysinfo.c: Removed. * backend-kernel.c: New file. * glibtop-backend-private.h: New file. * libgtop-kernel.backend: New file. * backend-kernel.pl: New file. Automatically creates `backend-kernel.h'. * marshal.pl: New file. Automatically creates `marshal.c'. * glibtop_server.h: Replaced all `GLIBTOP_SUID_<feature>' constants with `GLIBTOP_IMPL_<feature>' ones; they're used in marshal.c to find out which features this backend implements. * *.c: Renamed all `glibtop_get_<feature>_s' functions to `glibtop_get_<feature>_k' and all `glibtop_init_<feature>_s' ones to `glibtop_init_<feature>_k'.
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
LINK = \
|
|
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
|
|
|
|
INCLUDES = \
|
|
@INCLUDES@
|
|
|
|
backenddir = \
|
|
@LIBGTOP_BACKEND_DIR@
|
|
|
|
backend_LTLIBRARIES = \
|
|
libgtop_backend_kernel.la
|
|
|
|
backend_DATA = \
|
|
libgtop-kernel.backend
|
|
|
|
libgtop_backend_kernel_la_SOURCES = \
|
|
cpu.c mem.c swap.c uptime.c loadavg.c \
|
|
proclist.c procstate.c procuid.c \
|
|
proctime.c procmem.c procsignal.c prockernel.c \
|
|
procsegment.c procargs.c procmap.c netload.c \
|
|
netinfo.c interfaces.c procdata.c \
|
|
backend-kernel.c marshal.c
|
|
|
|
libgtop_backend_kernel_la_LDFLAGS = \
|
|
$(LT_VERSION_INFO)
|
|
|
|
noinst_HEADERS = \
|
|
glibtop_server.h glibtop_private.h
|
|
|
|
BUILT_SOURCES = \
|
|
marshal.c \
|
|
backend-kernel.h
|
|
|
|
EXTRA_DIST = \
|
|
marshal.pl \
|
|
backend-kernel.pl \
|
|
libgtop-sysdeps.backend
|
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
marshal.c: marshal.pl $(top_builddir)/config.h $(top_srcdir)/features.def $(top_srcdir)/scripts/c_types.pl
|
|
$(PERL) -I $(top_srcdir)/scripts $(srcdir)/marshal.pl < $(top_srcdir)/features.def > tmp-t
|
|
mv tmp-t marshal.c
|
|
|
|
backend-kernel.h: backend-kernel.pl $(top_builddir)/config.h $(top_srcdir)/features.def $(top_srcdir)/scripts/c_types.pl
|
|
$(PERL) -I $(top_srcdir)/scripts $(srcdir)/backend-kernel.pl < $(top_srcdir)/features.def > tmp-t
|
|
mv tmp-t backend-kernel.h
|
|
|