Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(728)

Side by Side Diff: Modules/makesetup

Issue 1749042: Improve Python's handling of CFLAGS and friends (Closed) Base URL: http://svn.python.org/view/*checkout*/python/branches/py3k/
Patch Set: Fix some of Marc-Andre's comments Created 13 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« Lib/sysconfig.py ('K') | « Misc/NEWS ('k') | configure » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #! /bin/sh 1 #! /bin/sh
2 2
3 # Convert templates into Makefile and config.c, based on the module 3 # Convert templates into Makefile and config.c, based on the module
4 # definitions found in the file Setup. 4 # definitions found in the file Setup.
5 # 5 #
6 # Usage: makesetup [-s dir] [-c file] [-m file] [Setup] ... [-n [Setup] ...] 6 # Usage: makesetup [-s dir] [-c file] [-m file] [Setup] ... [-n [Setup] ...]
7 # 7 #
8 # Options: 8 # Options:
9 # -s directory: alternative source directory (default .) 9 # -s directory: alternative source directory (default .)
10 # -l directory: library source directory (default derived from $0) 10 # -l directory: library source directory (default derived from $0)
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 objs="$objs $obj" 212 objs="$objs $obj"
213 case $src in 213 case $src in
214 glmodule.c) ;; 214 glmodule.c) ;;
215 /*) ;; 215 /*) ;;
216 \$*) ;; 216 \$*) ;;
217 *) src='$(srcdir)/'"$srcdir/$src";; 217 *) src='$(srcdir)/'"$srcdir/$src";;
218 esac 218 esac
219 case $doconfig in 219 case $doconfig in
220 no) cc="$cc \$(CCSHARED) \$(CFLAGS) \$(CPPFLAGS)";; 220 no) cc="$cc \$(CCSHARED) \$(CFLAGS) \$(CPPFLAGS)";;
221 *) 221 *)
222 » » » » cc="$cc \$(PY_CFLAGS)";; 222 » » » » cc="$cc \$(PY_CORE_CFLAGS)";;
223 esac 223 esac
224 rule="$obj: $src; $cc $cpps -c $src -o $obj" 224 rule="$obj: $src; $cc $cpps -c $src -o $obj"
225 echo "$rule" >>$rulesf 225 echo "$rule" >>$rulesf
226 done 226 done
227 case $doconfig in 227 case $doconfig in
228 yes) OBJS="$OBJS $objs";; 228 yes) OBJS="$OBJS $objs";;
229 esac 229 esac
230 for mod in $mods 230 for mod in $mods
231 do 231 do
232 case $objs in 232 case $objs in
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 echo "s%_MODLIBS_%$LIBS%" >>$sedf 288 echo "s%_MODLIBS_%$LIBS%" >>$sedf
289 echo "/Definitions added by makesetup/a$NL$NL$DEFS" >>$sedf 289 echo "/Definitions added by makesetup/a$NL$NL$DEFS" >>$sedf
290 sed -f $sedf $makepre >Makefile 290 sed -f $sedf $makepre >Makefile
291 cat $rulesf >>Makefile 291 cat $rulesf >>Makefile
292 rm -f $sedf 292 rm -f $sedf
293 ;; 293 ;;
294 esac 294 esac
295 295
296 rm -f $rulesf 296 rm -f $rulesf
297 ) 297 )
OLDNEW
« Lib/sysconfig.py ('K') | « Misc/NEWS ('k') | configure » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b