Edit

kc3-lang/automake/tests/subobj.test

Branch :

  • Show log

    Commit

  • Author : Akim Demaille
    Date : 2001-03-05 15:03:00
    Hash : 65e17bce
    Message : If OBJEXT and EXEEXT are not set, provide a default value, and use them unconditionally. * automake.in (&generate_makefile): Provide default values for EXEEXT and OBJEXT. (&get_object_extension, &finish_languages) (&handle_single_transform_list, &handle_programs, &add_depend2) (&check_cygnus, &lang_c_finish, am_install_var): Don't bother with them, they are defined. * compile.am, depend2.am, program.am, progs.am: Likewise. * remake-hdr.am: Fix a typo. * tests/cxxo.test, tests/fo.test, tests/implicit.test, * tests/interp.test, tests/subobj.test, tests/subobj2.test, * tests/suffix2.test: Adjust.

  • tests/subobj.test
  • #! /bin/sh
    
    # Test of subdir objects with C.
    
    . $srcdir/defs || exit 1
    
    cat >> configure.in << 'END'
    AM_PROG_CC_C_O
    AC_PROG_CC
    END
    
    cat > Makefile.am << 'END'
    AUTOMAKE_OPTIONS = subdir-objects
    bin_PROGRAMS = wish
    wish_SOURCES = generic/a.c generic/b.c
    END
    
    : > compile
    
    $AUTOMAKE || exit 1
    
    fgrep 'generic/a.$(OBJEXT)' Makefile.in || exit 1
    grep '[^/]a\.\$(OBJEXT)' Makefile.in && exit 1
    
    # Opportunistically test for a different bug.
    grep '^generic/b.\$(OBJEXT):.*dirstamp' Makefile.in