Skip to content

Commit

Permalink
all: remove useless defines
Browse files Browse the repository at this point in the history
VERSION is defined in config.h, we shouldn't define or redefine it.

There's no point in G_*_DEPRECATED by default other that it may break the build
in future.
  • Loading branch information
lkundrak committed Oct 23, 2015
1 parent 80d857f commit 3239062
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions auth-dialog/Makefile.am
Expand Up @@ -9,9 +9,7 @@ nm_l2tp_auth_dialog_CPPFLAGS = \
$(GNOMEKEYRING_CFLAGS) \
-DICONDIR=\""$(datadir)/pixmaps"\" \
-DUIDIR=\""$(uidir)"\" \
-DBINDIR=\""$(bindir)"\" \
-DG_DISABLE_DEPRECATED \
-DVERSION=\"$(VERSION)\"
-DBINDIR=\""$(bindir)"\"

nm_l2tp_auth_dialog_SOURCES = \
main.c \
Expand Down
4 changes: 1 addition & 3 deletions properties/Makefile.am
Expand Up @@ -27,9 +27,7 @@ common_CFLAGS = \
$(GTK_CFLAGS) \
-DICONDIR=\""$(datadir)/pixmaps"\" \
-DUIDIR=\""$(uidir)"\" \
-DLOCALEDIR=\""$(datadir)/locale"\" \
-DG_DISABLE_DEPRECATED \
-DVERSION=\"$(VERSION)\"
-DLOCALEDIR=\""$(datadir)/locale"\"

libnm_vpn_plugin_l2tp_la_CFLAGS = \
$(LIBNM_CFLAGS) \
Expand Down
2 changes: 0 additions & 2 deletions src/Makefile.am
Expand Up @@ -3,11 +3,9 @@ INCLUDES = -I${top_srcdir}
AM_CPPFLAGS = \
$(GLIB_CFLAGS) \
$(LIBNM_CFLAGS) \
-DG_DISABLE_DEPRECATED \
-DBINDIR=\"$(bindir)\" \
-DPREFIX=\""$(prefix)"\" \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DNM_VERSION="\"$(VERSION)\"" \
-DLIBDIR=\""$(libdir)"\" \
-DLIBEXECDIR=\""$(libexecdir)"\" \
-DLOCALSTATEDIR=\""$(localstatedir)"\" \
Expand Down

0 comments on commit 3239062

Please sign in to comment.