2011-11-21 21:35:15 +07:00
|
|
|
EXTRA_DIST = autogen.sh
|
|
|
|
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
|
|
|
AM_MAKEFLAGS = --no-print-directory
|
|
|
|
|
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-include $(top_builddir)/config.h \
|
2011-11-21 23:35:35 +07:00
|
|
|
-I$(top_srcdir)/libkmod \
|
2011-11-21 21:35:15 +07:00
|
|
|
-DSYSCONFDIR=\""$(sysconfdir)"\" \
|
|
|
|
-DLIBEXECDIR=\""$(libexecdir)"\"
|
|
|
|
|
|
|
|
AM_CFLAGS = \
|
|
|
|
-fvisibility=hidden \
|
|
|
|
-ffunction-sections \
|
|
|
|
-fdata-sections
|
|
|
|
|
|
|
|
AM_LDFLAGS = \
|
|
|
|
-Wl,--gc-sections \
|
|
|
|
-Wl,--as-needed
|
|
|
|
|
|
|
|
CLEANFILES =
|
|
|
|
|
2011-11-22 14:35:43 +07:00
|
|
|
LIBKMOD_CURRENT=0
|
2011-11-21 23:35:35 +07:00
|
|
|
LIBKMOD_REVISION=0
|
2011-11-22 14:35:43 +07:00
|
|
|
LIBKMOD_AGE=0
|
2011-11-21 21:35:15 +07:00
|
|
|
|
2011-11-21 23:35:35 +07:00
|
|
|
include_HEADERS = libkmod/libkmod.h
|
|
|
|
lib_LTLIBRARIES = libkmod/libkmod.la
|
2011-11-21 21:35:15 +07:00
|
|
|
|
2011-11-21 23:35:35 +07:00
|
|
|
libkmod_libkmod_la_SOURCES =\
|
|
|
|
libkmod/libkmod.h \
|
|
|
|
libkmod/libkmod-private.h \
|
2011-11-23 21:23:46 +07:00
|
|
|
libkmod/macro.h \
|
2011-11-22 14:38:28 +07:00
|
|
|
libkmod/libkmod.c \
|
2011-11-22 14:42:09 +07:00
|
|
|
libkmod/libkmod-list.c \
|
2011-11-25 10:22:56 +07:00
|
|
|
libkmod/libkmod-loaded.c \
|
|
|
|
libkmod/libkmod-module.c
|
2011-11-21 21:35:15 +07:00
|
|
|
|
2011-11-21 23:35:35 +07:00
|
|
|
EXTRA_DIST += libkmod/libkmod.sym
|
2011-11-21 21:35:15 +07:00
|
|
|
|
2011-11-21 23:35:35 +07:00
|
|
|
libkmod_libkmod_la_LDFLAGS = $(AM_LDFLAGS) \
|
|
|
|
-version-info $(LIBKMOD_CURRENT):$(LIBKMOD_REVISION):$(LIBKMOD_AGE) \
|
|
|
|
-Wl,--version-script=$(top_srcdir)/libkmod/libkmod.sym
|
2011-11-21 21:35:15 +07:00
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2011-11-21 23:35:35 +07:00
|
|
|
pkgconfig_DATA = libkmod/libkmod.pc
|
2011-11-21 21:35:15 +07:00
|
|
|
|
2011-11-22 14:42:09 +07:00
|
|
|
TESTS = test/test-init test/test-loaded
|
2011-11-22 23:50:50 +07:00
|
|
|
|
2011-11-25 10:21:47 +07:00
|
|
|
check_PROGRAMS = test/test-init test/test-loaded
|
2011-11-22 23:50:50 +07:00
|
|
|
test_test_init_SOURCES = test/test-init.c
|
|
|
|
test_test_init_LDADD = libkmod/libkmod.la
|
2011-11-22 14:42:09 +07:00
|
|
|
|
|
|
|
test_test_loaded_SOURCES = test/test-loaded.c
|
|
|
|
test_test_loaded_LDADD = libkmod/libkmod.la
|
2011-11-24 02:22:09 +07:00
|
|
|
|
2011-11-25 10:25:18 +07:00
|
|
|
noinst_PROGRAMS = test/test-insmod test/test-rmmod test/test-rmmod2 \
|
2011-11-25 10:24:16 +07:00
|
|
|
$(check_PROGRAMS)
|
2011-11-24 02:22:09 +07:00
|
|
|
test_test_rmmod_SOURCES = test/test-rmmod.c
|
|
|
|
test_test_rmmod_LDADD = libkmod/libkmod.la
|
2011-11-25 10:24:16 +07:00
|
|
|
|
|
|
|
test_test_rmmod2_SOURCES = test/test-rmmod2.c
|
|
|
|
test_test_rmmod2_LDADD = libkmod/libkmod.la
|
2011-11-25 10:25:18 +07:00
|
|
|
|
|
|
|
test_test_insmod_SOURCES = test/test-insmod.c
|
|
|
|
test_test_insmod_LDADD = libkmod/libkmod.la
|