Changeset 666 for trunk/server/source3


Ignore:
Timestamp:
Nov 23, 2011, 4:48:12 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba Server 3.5: build.cmd 0.3.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/build.cmd

    r656 r666  
    88/* version 0.3.2 from 08.07.2011 Silvan (pythonhome may be not set) */
    99/* version 0.3.3 from 05.11.2011 Herwig (add support for libc064) */
     10/* version 0.3.4 from 23.11.2011 Herwig (simplify libc switching) */
    1011
    1112/* load the sysfuncs if not already loaded */
     
    1718
    1819/* init the version string (don't forget to change) */
    19 version = "0.3.3"
    20 version_date = "05.11.2011"
     20version = "0.3.4"
     21version_date = "23.11.2011"
    2122
    2223'@echo off'
     
    3031    say "Valid commands are:"
    3132    say "      HELP  - this page"
    32     say "      064   - link against libc064.dll (default)"
    33     say "      064x  - link against libc064x.dll"
    34     say "      063   - link against libc063.dll"
    3533    say "      CONF  - run configure"
    3634    say "      CLEAN - clean up and recompile everything"
     
    4139    say "      ZIP   - create ZIP archive"
    4240    say "      ALL   - do just everything"
     41    say "Deprecated options:"
     42    say "      064   - link against libc064.dll (default)"
     43    say "      064x  - link against libc064x.dll"
     44    say "      063   - link against libc063.dll"
    4345    say
    4446    exit 255
     
    5557/* defaults */
    5658make  = ""
    57 libc  = "064"
    5859brand = "No"
    5960conf  = ""
     
    7475build_parms = ""
    7576
     77/* delete the following 7 lines to remove libc switching capability */
     78select
     79    when pos("064X", cmdline) > 0 then libc = "064X"
     80    when pos("063", cmdline) > 0 then  libc = "063"
     81    otherwise libc = "064"
     82end
     83address cmd "call "libc".cmd"
     84
    7685if pos("MAKE", cmdline) > 0 then do
    7786    make = "MAKE"
     
    8392    build_parms = build_parms||' 'make
    8493end
    85 select
    86     when pos("064X", cmdline) > 0 then do
    87         libc = "064X"
    88         build_parms = build_parms||' 'libc   
    89     end
    90     when pos("063", cmdline) > 0 then do
    91         libc = "063"
    92         build_parms = build_parms||' 'libc   
    93     end
    94     otherwise do
    95         libc = "064"
    96         build_parms = build_parms||' 'libc   
    97     end
    98 end
     94
    9995if pos("BRAND", cmdline) > 0 then do
    10096    Brand = "YES"
     
    107103
    108104/* start working */
    109 select
    110     when libc = "064X" then address cmd "call 064x.cmd"
    111     when libc = "063" then address cmd "call 063.cmd"
    112     otherwise address cmd "call 064.cmd"
    113 end
    114 
    115105if conf = "YES" then do
    116106    address cmd 'SETLOCAL'
    117 /*    address cmd 'SET CFLAGS=-g -Zomf -O1 -march=pentium -mtune=pentium4'
     107/*  address cmd 'SET CFLAGS=-g -Zomf -O1 -march=pentium -mtune=pentium4'
    118108    address cmd 'SET CXXFLAGS=-g -Zomf -O1 -march=pentium -mtune=pentium4'
    119109    address cmd 'SET LDFLAGS=-s -Zsym -Zmap -Zbin-files -Zomf -Zexe -Zargs-wild -Zargs-resp'
Note: See TracChangeset for help on using the changeset viewer.