mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 16:00:12 +01:00
Although having different parts of NM in different subdirectories keeps the source tree neat, it has made the build messy, particularly because of cross-dependencies between the subdirs. Reorganize to build all of the pieces of the NetworkManager binary from src/Makefile, and only use recursive make for test programs, helper binaries, and plugins. As part of this, get rid of all the per-directory convenience libraries, and switch to building a single top-level libNetworkManager.la, containing everything except main.c, which all of the test programs can then link against.
31 lines
586 B
Makefile
31 lines
586 B
Makefile
INCLUDES = \
|
|
-I$(top_srcdir)/include \
|
|
-I$(top_builddir)/include \
|
|
-I$(top_srcdir)/libnm-util \
|
|
-I$(top_builddir)/libnm-util \
|
|
-I$(top_srcdir)/src/config
|
|
|
|
noinst_PROGRAMS = \
|
|
test-config
|
|
|
|
test_config_SOURCES = \
|
|
nm-test-device.c \
|
|
nm-test-device.h \
|
|
test-config.c
|
|
|
|
test_config_CPPFLAGS = \
|
|
-DSRCDIR=\""$(srcdir)"\" \
|
|
$(GLIB_CFLAGS)
|
|
|
|
test_config_LDADD = \
|
|
$(top_builddir)/src/libNetworkManager.la
|
|
|
|
check-local: test-config
|
|
$(abs_builddir)/test-config
|
|
|
|
EXTRA_DIST = \
|
|
NetworkManager.conf \
|
|
bad.conf \
|
|
conf.d/00-overrides.conf \
|
|
conf.d/10-more.conf \
|
|
conf.d/90-last.conf
|