Changeset 89 for trunk/Makefile
- Timestamp:
- May 5, 2003, 1:56:10 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
-
Property cvs2svn:cvs-rev
changed from
1.11
to1.12
r88 r89 93 93 all-preload \ 94 94 all-builttools-initial \ 95 all-symlinks \ 95 96 \ 97 all-binutils \ 96 98 all-gcc \ 97 all-binutils \98 99 all-emx \ 99 100 \ … … 238 239 239 240 240 241 ############################################################################### 242 ############################################################################### 243 ############################################################################### 244 # 245 # S y m l i n k s 246 # 247 # 248 # We use symlinking of binutils stuff into the gcc tree so we can 249 # build everything in one go and take advantage of the gcc 250 # makesystem which will use the binutils we built when doing the 251 # gcc libraries and such. 252 # 253 # On OS/2 symlinks doesn't exist so, we'll copy the source trees. 254 # Copy because this will for directories work ok with cvs, moving 255 # directories would cause 'cvs update -d' to refetch stuff. 256 # 257 # 258 #w############################################################################## 259 ############################################################################### 260 ############################################################################### 261 all-symlinks: 262 # Don't do this till we've got binutils working. 263 # all-symlinks-binutils 264 265 ifeq "$(BUILD_PLATFORM)" "OS2" 266 TOOL_SYMLINK_FILE = cp 267 TOOL_SYMLINK_DIR = cp -Rf 268 TOOL_SYMLINK_MKDIR = mkdir 269 TOOL_UNSYMLINK_DIR = rm -Rf 270 else 271 TOOL_SYMLINK_FILE = ln -s 272 TOOL_SYMLINK_DIR = ln -s 273 TOOL_SYMLINK_MKDIR = true 274 TOOL_UNSYMLINK_DIR = rm 275 endif 276 277 SYMLINKS_BINUTILS_TO_GCC_DIRS = \ 278 bfd \ 279 binutils \ 280 etc \ 281 gas \ 282 gprof \ 283 intl \ 284 ld \ 285 opcodes \ 286 texinfo \ 287 include/aout \ 288 include/coff \ 289 include/elf \ 290 include/nlm \ 291 include/opcode \ 292 include/regs \ 293 294 SYMLINKS_BINUTILS_TO_GCC_FILES = \ 295 include/alloca-conf.h \ 296 include/ansidecl.h \ 297 include/bfdlink.h \ 298 include/bin-bugs.h \ 299 include/bout.h \ 300 include/callback.h \ 301 include/ChangeLog \ 302 include/COPYING \ 303 include/demangle.h \ 304 include/dis-asm.h \ 305 include/dyn-string.h \ 306 include/filenames.h \ 307 include/floatformat.h \ 308 include/fnmatch.h \ 309 include/fopen-bin.h \ 310 include/fopen-same.h \ 311 include/fopen-vms.h \ 312 include/gdbm.h \ 313 include/getopt.h \ 314 include/hashtab.h \ 315 include/hp-symtab.h \ 316 include/ieee.h \ 317 include/libiberty.h \ 318 include/MAINTAINERS \ 319 include/md5.h \ 320 include/oasys.h \ 321 include/objalloc.h \ 322 include/obstack.h \ 323 include/os9k.h \ 324 include/partition.h \ 325 include/progress.h \ 326 include/remote-sim.h \ 327 include/safe-ctype.h \ 328 include/sim-d10v.h \ 329 include/sort.h \ 330 include/splay-tree.h \ 331 include/symcat.h \ 332 333 # Symlink binutils stuff to gcc. 334 # Note the test should've been "! -e", but that doesn' work in ash... :/ 335 all-symlinks-binutils: 336 for file in $(SYMLINKS_BINUTILS_TO_GCC_FILES); do \ 337 if [ ! -f "$(PATH_TOP)/src/gcc/$$file" ]; then \ 338 $(TOOL_SYMLINK_FILE) $(PATH_TOP)/src/binutils/$$file $(PATH_TOP)/src/gcc/$$file && \ 339 touch $(PATH_TOP)/src/gcc/$${file}.symlinked ; \ 340 fi ; \ 341 done 342 for dir in $(SYMLINKS_BINUTILS_TO_GCC_DIRS) ; do \ 343 if [ ! -d "$(PATH_TOP)/src/gcc/$$dir" ] ; then \ 344 $(TOOL_SYMLINK_MKDIR) $(PATH_TOP)/src/gcc/$$dir && \ 345 touch $(PATH_TOP)/src/gcc/$${dir}.symlinked && \ 346 $(TOOL_SYMLINK_DIR) $(PATH_TOP)/src/binutils/$$dir $(PATH_TOP)/src/gcc/ ; \ 347 fi ; \ 348 done 349 350 all-symlinks-unlink-binutils: 351 for file in $(SYMLINKS_BINUTILS_TO_GCC_FILES); do \ 352 if [ -f "$(PATH_TOP)/src/gcc/$${file}.symlinked" ]; then \ 353 rm $(PATH_TOP)/src/gcc/$${file} && \ 354 rm $(PATH_TOP)/src/gcc/$${file}.symlinked ; \ 355 fi ; \ 356 done 357 for dir in $(SYMLINKS_BINUTILS_TO_GCC_DIRS) ; do \ 358 if [ -f "$(PATH_TOP)/src/gcc/$$dir.symlinked" ] ; then \ 359 $(TOOL_UNSYMLINK_DIR) $(PATH_TOP)/src/gcc/$${dir} && \ 360 rm $(PATH_TOP)/src/gcc/$${dir}.symlinked ; \ 361 fi ; \ 362 done 363 241 364 242 365 ############################################################################### … … 271 394 gcc/libjava/libltdl \ 272 395 gcc/libobjc \ 396 \ 397 gcc/bfd \ 398 gcc/binutils \ 399 gcc/gas \ 400 gcc/gprof \ 401 gcc/intl \ 402 gcc/ld \ 403 gcc/libiberty \ 404 gcc/opcodes \ 273 405 274 406 GCC_CONFIGURE_DIRS = $(GCC_DIRS) … … 369 501 ############################################################################### 370 502 all-binutils binutils: 371 echo "Successfully build BinUtils." 372 echo "Warning!!! BinUtils not yet done!" 373 374 375 376 377 503 echo "Binutils are build together with the other GNU Tools in GCC." 504 echo "Separate building of binutils is not configured." 505 506 507 508 # Generate diffs for GCC (v3.2.2) - part of packing a release. 509 .PHONY: binutils-diff $(PATH_BIN)/usr/src/binutils/binutils-2.11.2.diff 510 binutils-diff: $(PATH_BIN)/usr/src/binutils/binutils-2.11.2.diff 511 $(PATH_BIN)/usr/src/binutils/binutils-2.11.2.diff: 512 mkdir -p $(@D) 513 -cvs diff -R -N -w -c -r BINUTILS_2-11-2 src/binutils > $@ 514 378 515 379 516 ############################################################################### -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.