Ignore:
Timestamp:
19/02/2010 18:39:38 (2 years ago)
Author:
chris
Message:

Make the explicit target of each dependency, including libraries, to solve
problems with integrating QDBM into build system (default target tries to
build stuff we don't want).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/infrastructure/makebuildenv.pl.in

    r2607 r2622  
    480480         
    481481        my @all_deps_for_module; 
     482 
    482483        { 
    483484                # work out what dependencies need to be run 
     
    769770                for my $dep (@all_deps_for_module) 
    770771                { 
    771                         $deps_makeinfo .= "\t\t\$(HIDE) (cd ../../$dep; \$(MAKE)$sub_make_options -q \$(DEPENDMAKEFLAGS) -D NODEPS || \$(MAKE)$sub_make_options \$(DEPENDMAKEFLAGS) -D NODEPS)\n"; 
     772                        my $dep_target = ""; 
     773                        if ($dep =~ m|^lib/(.*)|) 
     774                        { 
     775                                $dep_target = "\$(OUTBASE)/$dep/$1.a"; 
     776                        } 
     777                        elsif ($dep =~ m|^.*/(.*)|) 
     778                        { 
     779                                $dep_target = "\$(OUTBASE)/$dep/$1$platform_exe_ext"; 
     780                        } 
     781                        else 
     782                        { 
     783                                $dep_target = "lib$dep.a"; 
     784                        } 
     785 
     786                        $deps_makeinfo .= <<EOF; 
     787        \$(HIDE) ( \\ 
     788                cd ../../$dep; \\ 
     789                \$(MAKE) $sub_make_options -q \$(DEPENDMAKEFLAGS) -D NODEPS $dep_target \\ 
     790                || \$(MAKE) $sub_make_options \$(DEPENDMAKEFLAGS) -D NODEPS $dep_target \\ 
     791        ) 
     792EOF 
    772793                } 
    773794 
Note: See TracChangeset for help on using the changeset viewer.