OLD | NEW |
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 Loading... |
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 Loading... |
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 ) |
OLD | NEW |