Fix warning flags.
[platform/upstream/libtasn1.git] / examples / Makefile.am
index a0207d3..b6997c3 100644 (file)
@@ -1,5 +1,5 @@
 ## Process this file with automake to produce Makefile.in
-# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
+# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation
 #
 # This file is part of LIBTASN1.
 #
@@ -16,7 +16,8 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_builddir)/gl
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
+AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_builddir)/gl
 
 EXTRA_DIST = asn1Coding_test.asn asn1Coding_test.asg
 
@@ -31,5 +32,5 @@ CrlExample_SOURCES = CrlExample.c pkix_asn1_tab.c pkix.asn
 BUILT_SOURCES = pkix_asn1_tab.c
 MAINTAINERCLEANFILES = pkix_asn1_tab.c
 
-pkix_asn1_tab.c: asn1Parser $(srcdir)/pkix.asn
-       -./asn1Parser -o $@ $(srcdir)/pkix.asn
+pkix_asn1_tab.c: $(srcdir)/pkix.asn
+       ../src/asn1Parser -o $@ $(srcdir)/pkix.asn