2000-11-22 Martin Baulig <martin@home-of-linux.org> * lib/glibtop-server.c: New file. * lib/test-backends.c: New file. * lib/Makefile.am: Build test-backends test program. * lib/init-backends.c: Port this to libxml 2. * configure.in: Make this really work. * acinclude.m4: Removed the xml stuff. * Makefile.am (SUBDIRS): Put lib in front of sysdeps and backends.
58 lines
1.5 KiB
Makefile
58 lines
1.5 KiB
Makefile
LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
|
|
|
|
INCLUDES = @INCLUDES@
|
|
|
|
noinst_PROGRAMS = test-backends
|
|
|
|
lib_LTLIBRARIES = libgtop.la
|
|
|
|
noinst_LTLIBRARIES = libgtop_server.la
|
|
|
|
libgtop_la_SOURCES = errors.c backend.c \
|
|
init-backends.c open-backend.c \
|
|
glibtop-client.c glibtop-server.c
|
|
|
|
libgtop_server_la_SOURCES = error.c xmalloc.c
|
|
|
|
libgtop_server_la_LDFLAGS = $(LT_VERSION_INFO)
|
|
|
|
libgtop_la_LDFLAGS = $(LT_VERSION_INFO)
|
|
libgtop_la_LIBADD = $(GLIB_LIBS) $(XML_LIBS)
|
|
|
|
test_backends_SOURCES = \
|
|
test-backends.c
|
|
|
|
test_backends_LDADD = libgtop.la
|
|
|
|
glibtopdir = $(includedir)/glibtop
|
|
|
|
glibtop_HEADERS = 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
|
|
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
|
|
|
|
sysdeps-init.c:
|
|
rm -f sysdeps-init.c
|
|
cp $(srcdir)/@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
|
|
|