From 3d2eab575e4af80707bcfcd112d0e2873c8562a6 Mon Sep 17 00:00:00 2001 From: dscho Date: Tue, 3 Feb 2009 12:22:29 +0000 Subject: clean up build flags The flag handling (both compiler options and include paths) are a mess at the moment. There is no point in forcing "-O2 -g" when these are already the defaults, and if someone changes the defaults, chances are good they don't want you clobbering their choices. The -Wall flag should be handled in configure and thrown into CFLAGS once rather than every Makefile.am. Plus, this way we can control which compilers the flag actually gets used with. Finally, the INCLUDES variable is for -I paths, not AM_CFLAGS. Nor should it contain -I. as this is already in the default includes setup. Signed-off-by: Mike Frysinger Signed-off-by: Johannes Schindelin --- contrib/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/Makefile.am') diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 2139603..637fea7 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -1,4 +1,4 @@ -AM_CFLAGS = -I $(top_srcdir) +INCLUDES = -I$(top_srcdir) LDADD = ../libvncserver/libvncserver.la @WSOCKLIB@ noinst_PROGRAMS=zippy -- cgit v1.2.1