mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 00:10:07 +01:00
Unfortunately, $(AM_CPPFLAGS) gets overridden by per-target _CPPFLAGS variables, which $(INCLUDES) did not, so this requires some additional changes. In most places, I have just gotten rid of the per-target _CPPFLAGS variables; in directories with a single target, the per-target variable is unnecessary, and in directories with multiple targets, the per-target variable is often undesirable, since it forces some files to be compiled twice, even though there ends up being no difference between the two files.
34 lines
808 B
Makefile
34 lines
808 B
Makefile
AM_CPPFLAGS = \
|
|
-I${top_srcdir} \
|
|
-I${top_srcdir}/libnm-util \
|
|
-I${top_builddir}/libnm-util \
|
|
-I${top_srcdir}/libnm-glib \
|
|
-I${top_srcdir}/include \
|
|
-I${top_builddir}/include \
|
|
$(DBUS_CFLAGS) \
|
|
$(GLIB_CFLAGS) \
|
|
-DBINDIR=\"$(bindir)\" \
|
|
-DDATADIR=\"$(datadir)\" \
|
|
-DNMLOCALEDIR=\"$(datadir)/locale\"
|
|
|
|
bin_PROGRAMS = nm-online
|
|
|
|
noinst_PROGRAMS = libnm-glib-test
|
|
|
|
nm_online_SOURCES = nm-online.c
|
|
nm_online_LDADD = \
|
|
$(top_builddir)/libnm-glib/libnm-glib.la \
|
|
$(top_builddir)/libnm-util/libnm-util.la \
|
|
$(DBUS_LIBS) \
|
|
$(GLIB_LIBS)
|
|
|
|
libnm_glib_test_SOURCES = libnm-glib-test.c
|
|
libnm_glib_test_CFLAGS = \
|
|
-Wno-deprecated-declarations \
|
|
-Wno-deprecated
|
|
libnm_glib_test_LDADD = \
|
|
$(top_builddir)/libnm-glib/libnm-glib.la \
|
|
$(top_builddir)/libnm-util/libnm-util.la \
|
|
$(DBUS_LIBS) \
|
|
$(GLIB_LIBS)
|
|
|