mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-12-19 21:16:11 +07:00
e8847fd2fc
This effectively makes the combined work be GPL. All other parts of this library are still LGPL and if this part in future becomes double-licensed, we can switch back to LGPL.
70 lines
1.7 KiB
Makefile
70 lines
1.7 KiB
Makefile
EXTRA_DIST = autogen.sh
|
|
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
|
|
|
|
CLEANFILES =
|
|
|
|
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-loaded.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
|
|
|
|
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 \
|
|
$(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
|