3 $description = "Test the interaction of the -lfoo feature and vpath";
6 open(MAKEFILE,"> $makefile");
8 # The Contents of the MAKEFILE ...
10 print MAKEFILE "vpath %.a a1\n";
11 print MAKEFILE "vpath %.so b1\n";
12 print MAKEFILE "vpath % a2 b2\n";
13 print MAKEFILE "vpath % b3\n";
14 print MAKEFILE "all: -l1 -l2 -l3; \@echo \$^\n";
16 # END of Contents of MAKEFILE
26 @files_to_touch = ("a1${pathsep}lib1.a",
27 "b1${pathsep}lib1.so",
29 "b2${pathsep}lib2.so",
31 "b3${pathsep}lib3.so");
33 &touch(@files_to_touch);
35 &run_make_with_options($makefile,"",&get_logfile);
37 # Create the answer to what should be produced by this Makefile
38 $answer = "a1${pathsep}lib1.a a2${pathsep}lib2.a lib3.a\n";
40 if (&compare_output($answer,&get_logfile(1)))
42 unlink @files_to_touch;