From Nicolas Joly:
[automake.git] / tests / subobj.test
blobf9245b85793971bd3c3b2f7d1146be7fa122369d
1 #! /bin/sh
3 # Test of subdir objects with C.
5 . $srcdir/defs || exit 1
7 cat >> configure.in << 'END'
8 AM_PROG_CC_C_O
9 AC_PROG_CC
10 END
12 cat > Makefile.am << 'END'
13 AUTOMAKE_OPTIONS = subdir-objects
14 bin_PROGRAMS = wish
15 wish_SOURCES = generic/a.c generic/b.c
16 END
18 : > compile
20 $ACLOCAL || exit 1
21 $AUTOMAKE || exit 1
23 fgrep 'generic/a.$(OBJEXT)' Makefile.in || exit 1
24 grep '[^/]a\.\$(OBJEXT)' Makefile.in && exit 1
26 # Opportunistically test for a different bug.
27 grep '^generic/b.\$(OBJEXT):.*dirstamp' Makefile.in