kmod/Makefile.am
Lucas De Marchi 49ce6d0741 Remove libkmod-loaded.c and re-order functions in libkmod-module.c
It's not possible to move functions related to "live" modules to
libkmod-loaded.c because they depend on the definition of kmod_module.
Putting this structure in the private header is not a good idea, so let
all functions related to "live" information in the end of
libkmod-module.c, and move the sole function from libkmod-loaded.c to
this place. This way all functions get the right documentation
about their sections.
2011-12-12 13:56:47 -02:00

98 lines
2.6 KiB
Makefile

EXTRA_DIST =
CLEANFILES =
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-I$(top_srcdir)/libkmod \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DLIBEXECDIR=\""$(libexecdir)"\"
AM_CFLAGS = \
-fvisibility=hidden \
-ffunction-sections \
-fdata-sections
AM_LDFLAGS = \
-Wl,--gc-sections \
-Wl,--as-needed
LIBKMOD_CURRENT=0
LIBKMOD_REVISION=0
LIBKMOD_AGE=0
include_HEADERS = libkmod/libkmod.h
lib_LTLIBRARIES = libkmod/libkmod.la
libkmod_libkmod_la_SOURCES =\
libkmod/libkmod.h \
libkmod/libkmod-private.h \
libkmod/macro.h \
libkmod/libkmod.c \
libkmod/libkmod-list.c \
libkmod/libkmod-hash.c \
libkmod/libkmod-config.c \
libkmod/libkmod-util.c \
libkmod/libkmod-index.c \
libkmod/libkmod-index.h \
libkmod/libkmod-module.c
EXTRA_DIST += libkmod/libkmod.sym
libkmod_libkmod_la_LDFLAGS = $(AM_LDFLAGS) \
-version-info $(LIBKMOD_CURRENT):$(LIBKMOD_REVISION):$(LIBKMOD_AGE) \
-Wl,--version-script=$(top_srcdir)/libkmod/libkmod.sym
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libkmod/libkmod.pc
if BUILD_TOOLS
bin_PROGRAMS = tools/kmod-insmod tools/kmod-rmmod tools/kmod-lsmod \
tools/kmod-modprobe
tools_kmod_insmod_LDADD = libkmod/libkmod.la
tools_kmod_rmmod_LDADD = libkmod/libkmod.la
tools_kmod_lsmod_LDADD = libkmod/libkmod.la
tools_kmod_modprobe_LDADD = libkmod/libkmod.la
endif
TESTS = test/test-init test/test-loaded
check_PROGRAMS = test/test-init test/test-loaded
test_test_init_SOURCES = test/test-init.c
test_test_init_LDADD = libkmod/libkmod.la
test_test_loaded_SOURCES = test/test-loaded.c
test_test_loaded_LDADD = libkmod/libkmod.la
noinst_PROGRAMS = test/test-insmod test/test-rmmod test/test-rmmod2 \
test/test-lookup test/test-path-from-name \
test/test-get-dependencies test/test-mod-double-ref \
test/test-blacklist \
$(check_PROGRAMS)
test_test_rmmod_SOURCES = test/test-rmmod.c
test_test_rmmod_LDADD = libkmod/libkmod.la
test_test_rmmod2_SOURCES = test/test-rmmod2.c
test_test_rmmod2_LDADD = libkmod/libkmod.la
test_test_insmod_SOURCES = test/test-insmod.c
test_test_insmod_LDADD = libkmod/libkmod.la
test_test_lookup_SOURCES = test/test-lookup.c
test_test_lookup_LDADD = libkmod/libkmod.la
test_test_path_from_name_SOURCES = test/test-path-from-name.c
test_test_path_from_name_LDADD = libkmod/libkmod.la
test_test_get_dependencies_SOURCES = test/test-get-dependencies.c
test_test_get_dependencies_LDADD = libkmod/libkmod.la
test_test_mod_double_ref_SOURCES = test/test-mod-double-ref.c
test_test_mod_double_ref_LDADD = libkmod/libkmod.la
test_test_blacklist_SOURCES = test/test-blacklist.c
test_test_blacklist_LDADD = libkmod/libkmod.la