mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 12:30:07 +01:00
For internal compilation we want to be able to use deprecated API without warnings. Define the version min/max macros to effectively disable deprecation warnings. However, don't do it via CFLAGS option in the makefiles, instead hack it to "nm-default.h". After all, *every* source file that is for internal compilation needs to include this header as first.
39 lines
769 B
Makefile
39 lines
769 B
Makefile
if ENABLE_TESTS
|
|
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir)/shared \
|
|
-I$(top_builddir)/shared \
|
|
-I$(top_srcdir)/libnm-core \
|
|
-I$(top_builddir)/libnm-core \
|
|
-I$(top_srcdir)/callouts \
|
|
-I$(top_builddir)/callouts \
|
|
-DNETWORKMANAGER_COMPILATION \
|
|
-DSRCDIR=\"$(abs_srcdir)\" \
|
|
$(GLIB_CFLAGS)
|
|
|
|
noinst_PROGRAMS = \
|
|
test-dispatcher-envp
|
|
|
|
####### dispatcher envp #######
|
|
|
|
test_dispatcher_envp_SOURCES = \
|
|
test-dispatcher-envp.c
|
|
|
|
test_dispatcher_envp_LDADD = \
|
|
$(top_builddir)/libnm/libnm.la \
|
|
$(top_builddir)/callouts/libtest-dispatcher-envp.la \
|
|
$(GLIB_LIBS)
|
|
|
|
###########################################
|
|
|
|
@VALGRIND_RULES@
|
|
TESTS = test-dispatcher-envp
|
|
|
|
endif
|
|
|
|
EXTRA_DIST= \
|
|
dispatcher-down \
|
|
dispatcher-external \
|
|
dispatcher-up \
|
|
dispatcher-vpn-down \
|
|
dispatcher-vpn-up
|