summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>2000-01-13 00:05:35 +0000
committerMartin Baulig <martin@src.gnome.org>2000-01-13 00:05:35 +0000
commit5af2aab0bfb74cf81bce57aeeaa65c1203bba172 (patch)
tree375d532fd998f95fe416577146a5ebc0d728f01d /lib
parentdd8c31ebda2444c46b0870bd222b766165c520c3 (diff)
downloadlibgtop-5af2aab0bfb74cf81bce57aeeaa65c1203bba172.tar.gz
*** empty log message ***
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am17
1 files changed, 13 insertions, 4 deletions
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
+