2000-02-22 Martin Baulig <martin@home-of-linux.org> * Makefile.am: Only install the libs in $(LIBGTOP_BACKEND_DIR) when we LIBGTOP_USE_GMODULE and in $(libdir) otherwise.
86 lines
2.0 KiB
Makefile
86 lines
2.0 KiB
Makefile
LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
|
|
|
|
INCLUDES = @INCLUDES@ -D_BSD \
|
|
-DLIBGTOP_COMPILE_SYSTEM=\"`uname -s`\" \
|
|
-DLIBGTOP_COMPILE_RELEASE=\"`uname -r`\" \
|
|
-DLIBGTOP_COMPILE_MACHINE=\"`uname -m`\"
|
|
|
|
backenddir = @LIBGTOP_BACKEND_DIR@
|
|
|
|
if LIBGTOP_USE_GMODULE
|
|
backendlibdir = $(backenddir)
|
|
else
|
|
backendlibdir = $(libdir)
|
|
endif
|
|
|
|
dynamic_ldflags = @libgtop_dynamic_ldflags@
|
|
|
|
backend_DATA = \
|
|
libgtop-server.backend
|
|
|
|
noinst_HEADERS = \
|
|
glibtop-backend-private.h
|
|
|
|
backendlib_LTLIBRARIES = \
|
|
libgtop_backend_server.la
|
|
|
|
bin_PROGRAMS = \
|
|
@server_programs@
|
|
|
|
EXTRA_PROGRAMS = \
|
|
libgtop_server
|
|
|
|
libgtop_backend_server_la_SOURCES = \
|
|
backend-server.c \
|
|
marshal.c \
|
|
command.c \
|
|
read.c \
|
|
read_data.c \
|
|
write.c
|
|
|
|
libgtop_backend_server_la_LDFLAGS = \
|
|
$(LT_VERSION_INFO) $(dynamic_ldflags)
|
|
|
|
libgtop_server_SOURCES = \
|
|
server.c \
|
|
server.h \
|
|
demarshal.c \
|
|
version.c \
|
|
io.c
|
|
|
|
libgtop_server_LDADD = \
|
|
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps_suid.la \
|
|
$(top_builddir)/sysdeps/common/libgtop_suid_common.la \
|
|
@LIBSUPPORT@
|
|
|
|
if ENABLE_STATIC
|
|
libgtop_server_LDFLAGS = -static
|
|
endif
|
|
|
|
BUILT_SOURCES = \
|
|
marshal.c \
|
|
demarshal.c \
|
|
command.h
|
|
|
|
EXTRA_DIST = \
|
|
marshal.pl \
|
|
demarshal.pl \
|
|
command.pl \
|
|
command.h.in \
|
|
libgtop-server.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
|
|
|
|
demarshal.c: demarshal.pl $(top_builddir)/config.h $(top_srcdir)/features.def $(top_srcdir)/scripts/c_types.pl
|
|
$(PERL) -I $(top_srcdir)/scripts $(srcdir)/demarshal.pl < $(top_srcdir)/features.def > tmp-t
|
|
mv tmp-t demarshal.c
|
|
|
|
command.h: command.pl command.h.in $(top_builddir)/config.h $(top_srcdir)/features.def $(top_srcdir)/scripts/c_types.pl
|
|
$(PERL) -I $(top_srcdir)/scripts $(srcdir)/command.pl $(top_srcdir)/features.def $(srcdir)/command.h.in > tmp-t
|
|
mv tmp-t command.h
|
|
|