Fix automake warning about deprecated INCLUDES
authorHugo Villeneuve <hugo@hugovil.com>
Tue, 23 Jul 2013 23:34:03 +0000 (19:34 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 27 Jul 2013 04:39:12 +0000 (00:39 -0400)
Warning was:
    src/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS'
    (or '*_CPPFLAGS')

configure.ac
src/Makefile.am

index 91d8c2b..05a7974 100644 (file)
@@ -13,6 +13,9 @@ dnl Testing the C compiler.
 AC_PROG_CC
 AC_LANG_C
 
+dnl For per-target flags
+AM_PROG_CC_C_O
+
 dnl Checking for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 AC_TYPE_PID_T
index f2bbdca..bde3b7b 100644 (file)
@@ -1,15 +1,17 @@
 # This file is processed by GNU automake to generate Makefile.in
 
-INCLUDES = -I$(top_srcdir) \
-           -I$(top_srcdir)/pixmaps \
-           $(GTK_CFLAGS)
-
 bin_PROGRAMS = hvclock
 
 hvclock_SOURCES = hvclock.c hvclock.h clock.c clock.h \
                   options.c options.h dockapp.c dockapp.h \
                   common.h
 
+hvclock_CPPFLAGS = \
+    -I$(top_srcdir) \
+    -I$(top_srcdir)/pixmaps \
+    $(GTK_CFLAGS) \
+    $(AM_CPPFLAGS)
+
 hvclock_LDADD = $(GTK_LIBS)
 
 # These headers will be included in the distribution tarball, but will not be