Changeset 666 for trunk/server/source3
- Timestamp:
- Nov 23, 2011, 4:48:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/build.cmd
r656 r666 8 8 /* version 0.3.2 from 08.07.2011 Silvan (pythonhome may be not set) */ 9 9 /* 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) */ 10 11 11 12 /* load the sysfuncs if not already loaded */ … … 17 18 18 19 /* init the version string (don't forget to change) */ 19 version = "0.3. 3"20 version_date = " 05.11.2011"20 version = "0.3.4" 21 version_date = "23.11.2011" 21 22 22 23 '@echo off' … … 30 31 say "Valid commands are:" 31 32 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"35 33 say " CONF - run configure" 36 34 say " CLEAN - clean up and recompile everything" … … 41 39 say " ZIP - create ZIP archive" 42 40 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" 43 45 say 44 46 exit 255 … … 55 57 /* defaults */ 56 58 make = "" 57 libc = "064"58 59 brand = "No" 59 60 conf = "" … … 74 75 build_parms = "" 75 76 77 /* delete the following 7 lines to remove libc switching capability */ 78 select 79 when pos("064X", cmdline) > 0 then libc = "064X" 80 when pos("063", cmdline) > 0 then libc = "063" 81 otherwise libc = "064" 82 end 83 address cmd "call "libc".cmd" 84 76 85 if pos("MAKE", cmdline) > 0 then do 77 86 make = "MAKE" … … 83 92 build_parms = build_parms||' 'make 84 93 end 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 99 95 if pos("BRAND", cmdline) > 0 then do 100 96 Brand = "YES" … … 107 103 108 104 /* start working */ 109 select110 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 end114 115 105 if conf = "YES" then do 116 106 address cmd 'SETLOCAL' 117 /* 107 /* address cmd 'SET CFLAGS=-g -Zomf -O1 -march=pentium -mtune=pentium4' 118 108 address cmd 'SET CXXFLAGS=-g -Zomf -O1 -march=pentium -mtune=pentium4' 119 109 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.