typo + new comment
[automake.git] / tests / specflags3.test
blobf6cdd116e589882117c118bb8059ae1381467068
1 #! /bin/sh
3 # Test exe-specific flags with dependency tracking.
5 . $srcdir/defs || exit 1
7 cat > configure.in << 'END'
8 AC_INIT
9 AM_INIT_AUTOMAKE(test, 0.1)
10 AC_PROG_CC
11 AC_OUTPUT(Makefile)
12 END
14 cat > Makefile.am << 'END'
15 AUTOMAKE_OPTIONS = foreign
16 bin_PROGRAMS = foo
17 foo_SOURCES = foo.c
18 foo_CFLAGS = -DFOO
19 END
21 : > compile
23 $ACLOCAL || exit 1
24 $AUTOMAKE || exit 1
26 fgrep -e '-o foo-foo' Makefile.in || exit 1
28 fgrep 'foo.o.o' Makefile.in && exit 1
29 fgrep 'foo.$(OBJEXT).$(OBJEXT)' Makefile.in && exit 1
31 fgrep '$(foo_CFLAGS)' Makefile.in || exit 1
33 exit 0