diff options
author | Chris Wilson <chris+github@qwirx.com> | 2010-10-18 20:34:25 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2010-10-18 20:34:25 +0000 |
commit | cd154e05f09a5bd40e258f50a71e89d263143e35 (patch) | |
tree | facb5de5351f04d00c32b0504291f68eb8890b26 /infrastructure/makebuildenv.pl.in | |
parent | a1f32183837c489dae93a1813653288e41c60f70 (diff) |
Revert [2710] and [2717], remove TDB and replace with QDBM again, to fix
build on Windows and make it easier to merge Charles' work.
Diffstat (limited to 'infrastructure/makebuildenv.pl.in')
-rwxr-xr-x | infrastructure/makebuildenv.pl.in | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/infrastructure/makebuildenv.pl.in b/infrastructure/makebuildenv.pl.in index 56f7742e..f165accc 100755 --- a/infrastructure/makebuildenv.pl.in +++ b/infrastructure/makebuildenv.pl.in @@ -252,9 +252,6 @@ for(@modules_files) # check directory exists die "Module $mod can't be found\n" unless -d $mod; - - # skip bundled libraries with their own Makefile process - next if ($mod =~ m|^bundled/|); # and put in lists push @modules,$mod; @@ -513,20 +510,9 @@ __E } } - # make include path - my $include_paths = ""; - foreach my $mod (@all_deps_for_module) - { - if ($mod =~ m|^bundled/| and -d "$mod/include") - { - $include_paths .= "-I../../$mod/include "; - } - else - { - $include_paths .= "-I../../$mod "; - } - } + # make include path + my $include_paths = join(' ',map {'-I../../'.$_} @all_deps_for_module); # is target a library? my $target_is_library = ($type ne 'bin' && $type ne 'test'); @@ -788,18 +774,13 @@ __E { $dep_target = "\$(OUTBASE)/$dep/$1.a"; } - elsif ($dep =~ m|^bundled/(.*)|) - { - $dep_target = "lib$1.a"; - } - elsif ($dep =~ m|^bin/(.*)|) + elsif ($dep =~ m|^.*/(.*)|) { $dep_target = "\$(OUTBASE)/$dep/$1$platform_exe_ext"; } else { - die "Don't know how to add compile-time " . - "dependency on $dep"; + $dep_target = "lib$dep.a"; } $deps_makeinfo .= <<EOF; @@ -820,11 +801,11 @@ EOF my @lib_files; foreach my $dep (reverse @all_deps_for_module) { - if ($dep =~ m|^lib/(.+)$|) + if ($dep =~ m|^lib\/(.+)$|) { push @lib_files, "\$(OUTBASE)/$dep/$1.a"; } - elsif ($dep =~ m|^bundled/(.+)$|) + elsif ($dep =~ m|^([^/]+)$|) { push @lib_files, "../../$dep/lib$1.a"; } |