Changeset 2240 for box/trunk/infrastructure
- Timestamp:
- 21/08/2008 10:59:17 (4 years ago)
- File:
-
- 1 edited
-
box/trunk/infrastructure/makebuildenv.pl.in (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/infrastructure/makebuildenv.pl.in
r2232 r2240 40 40 my %env_flags; 41 41 42 my $windows_include_path = ""; 43 if ($target_windows) 44 { 45 $module_dependency{"lib/common"} = ["lib/win32"]; 46 push @implicit_deps, "lib/win32"; 47 } 48 else 49 { 50 # $env_flags{'IGNORE_lib/win32'} = 1; 51 } 42 $module_dependency{"lib/common"} = ["lib/win32"]; 43 push @implicit_deps, "lib/win32"; 52 44 53 45 # print "Flag: $_\n" for(keys %env_flags); … … 502 494 503 495 # make include path 504 my $include_paths = $windows_include_path . 505 join(' ',map {'-I../../'.$_} @all_deps_for_module); 496 my $include_paths = join(' ',map {'-I../../'.$_} @all_deps_for_module); 506 497 507 498 # is target a library? … … 531 522 532 523 my $default_cxxflags = '@CXXFLAGS@'; 533 my$default_cxxflags =~ s/ -O2//g;524 $default_cxxflags =~ s/ -O2//g; 534 525 535 526 my $release_flags = "-O2"; … … 551 542 WINDRES = windres 552 543 553 CXXFLAGS = @CPPFLAGS@ $default_cxxflags @CXXFLAGS_STRICT@ \\544 DEFAULT_CXXFLAGS = @CPPFLAGS@ $default_cxxflags @CXXFLAGS_STRICT@ \\ 554 545 $include_paths $extra_platform_defines \\ 555 546 -DBOX_VERSION="\\"$product_version\\"" … … 557 548 558 549 .ifdef RELEASE 559 CXXFLAGS += -DNDEBUG $release_flags550 CXXFLAGS = -DNDEBUG $release_flags \$(DEFAULT_CXXFLAGS) 560 551 OUTBASE = ../../release 561 552 OUTDIR = ../../release/$mod … … 563 554 VARIENT = RELEASE 564 555 .else 565 CXXFLAGS += -g556 CXXFLAGS = -g \$(DEFAULT_CXXFLAGS) 566 557 OUTBASE = ../../debug 567 558 OUTDIR = ../../debug/$mod … … 751 742 for my $dep (@all_deps_for_module) 752 743 { 753 $deps_makeinfo .= "\t\t\$(HIDE) (cd ../../$dep; \$(MAKE)$sub_make_options \$(DEPENDMAKEFLAGS) -D NODEPS)\n"; 754 } 744 $deps_makeinfo .= "\t\t\$(HIDE) (cd ../../$dep; \$(MAKE)$sub_make_options -q \$(DEPENDMAKEFLAGS) -D NODEPS || \$(MAKE)$sub_make_options \$(DEPENDMAKEFLAGS) -D NODEPS)\n"; 745 } 746 755 747 $deps_makeinfo .= ".\tendif\n.endif\n\n"; 756 748 } … … 841 833 842 834 # and a clean target 843 print MAKE "clean:\n\t-rm -rf \$(OUTDIR)/*\n.\tifndef SUBCLEAN\n"; 835 print MAKE <<EOF; 836 clean: 837 -rm -rf \$(OUTDIR)/* 838 . ifndef SUBCLEAN 839 EOF 844 840 for my $dep (@all_deps_for_module) 845 841 { … … 878 874 s/\A\.\s*(ifdef|else|endif|ifndef)/$1/; 879 875 s/\A\.\s*include\s+<(.+?)>/include $1/; 880 s/-D\s+(\w+)/$1=1/ ;876 s/-D\s+(\w+)/$1=1/g; 881 877 print MAKE; 882 878 }
Note: See TracChangeset
for help on using the changeset viewer.
