Files
libgtop/lib/Makefile.am
Martin Baulig 20c306fc6d Call `_glibtop_open_sysdeps'.
2000-01-12  Martin Baulig  <martin@home-of-linux.org>

	* lib/init.c (glibtop_init_s): Call `_glibtop_open_sysdeps'.

	* include/glibtop/open.h (_glibtop_open_sysdeps): Declare this
	when we are _IN_LIBGTOP.

	* configure.in (sysdeps_name): Define and AC_SUBST this.
	(sysdeps_init_file): Define and AC_SUBST this to
	`sysdeps-init-${sysdeps_name}.c'.

	* libgtop-sysdeps.m4 (GNOME_LIBGTOP_SYSDEPS): Define and AC_SUBST
	`libgtop_sysdeps_name'.
2000-01-12 22:46:29 +00:00

36 lines
1.0 KiB
Makefile

LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
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)
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
CLEANFILES = $(BUILT_SOURCES)