LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2012 The Go Authors. All rights reserved. | 1 // Copyright 2012 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #include "a.h" | 5 #include "a.h" |
6 #include "arg.h" | 6 #include "arg.h" |
7 | 7 |
8 /* | 8 /* |
9 * Initialization for any invocation. | 9 * Initialization for any invocation. |
10 */ | 10 */ |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 "../ld/*", | 521 "../ld/*", |
522 "enam.c", | 522 "enam.c", |
523 }}, | 523 }}, |
524 {"cmd/", { | 524 {"cmd/", { |
525 "$GOROOT/pkg/obj/$GOOS_$GOARCH/libmach.a", | 525 "$GOROOT/pkg/obj/$GOOS_$GOARCH/libmach.a", |
526 "$GOROOT/pkg/obj/$GOOS_$GOARCH/libbio.a", | 526 "$GOROOT/pkg/obj/$GOOS_$GOARCH/libbio.a", |
527 "$GOROOT/pkg/obj/$GOOS_$GOARCH/lib9.a", | 527 "$GOROOT/pkg/obj/$GOOS_$GOARCH/lib9.a", |
528 }}, | 528 }}, |
529 {"pkg/runtime", { | 529 {"pkg/runtime", { |
530 "zasm_$GOOS_$GOARCH.h", | 530 "zasm_$GOOS_$GOARCH.h", |
| 531 "zsys_$GOOS_$GOARCH.s", |
531 "zgoarch_$GOARCH.go", | 532 "zgoarch_$GOARCH.go", |
532 "zgoos_$GOOS.go", | 533 "zgoos_$GOOS.go", |
533 "zruntime_defs_$GOOS_$GOARCH.go", | 534 "zruntime_defs_$GOOS_$GOARCH.go", |
534 "zversion.go", | 535 "zversion.go", |
535 }}, | 536 }}, |
536 }; | 537 }; |
537 | 538 |
538 // depsuffix records the allowed suffixes for source files. | 539 // depsuffix records the allowed suffixes for source files. |
539 char *depsuffix[] = { | 540 char *depsuffix[] = { |
540 ".c", | 541 ".c", |
541 ".h", | 542 ".h", |
542 ".s", | 543 ".s", |
543 ".go", | 544 ".go", |
544 ".goc", | 545 ".goc", |
545 }; | 546 }; |
546 | 547 |
547 // gentab records how to generate some trivial files. | 548 // gentab records how to generate some trivial files. |
548 static struct { | 549 static struct { |
549 char *nameprefix; | 550 char *nameprefix; |
550 void (*gen)(char*, char*); | 551 void (*gen)(char*, char*); |
551 } gentab[] = { | 552 } gentab[] = { |
552 {"opnames.h", gcopnames}, | 553 {"opnames.h", gcopnames}, |
553 {"enam.c", mkenam}, | 554 {"enam.c", mkenam}, |
554 {"zasm_", mkzasm}, | 555 {"zasm_", mkzasm}, |
| 556 {"zsys_", mkzsys}, |
555 {"zgoarch_", mkzgoarch}, | 557 {"zgoarch_", mkzgoarch}, |
556 {"zgoos_", mkzgoos}, | 558 {"zgoos_", mkzgoos}, |
557 {"zruntime_defs_", mkzruntimedefs}, | 559 {"zruntime_defs_", mkzruntimedefs}, |
558 {"zversion.go", mkzversion}, | 560 {"zversion.go", mkzversion}, |
559 }; | 561 }; |
560 | 562 |
561 // install installs the library, package, or binary associated with dir, | 563 // install installs the library, package, or binary associated with dir, |
562 // which is relative to $GOROOT/src. | 564 // which is relative to $GOROOT/src. |
563 static void | 565 static void |
564 install(char *dir) | 566 install(char *dir) |
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1675 break; | 1677 break; |
1676 default: | 1678 default: |
1677 usage(); | 1679 usage(); |
1678 }ARGEND | 1680 }ARGEND |
1679 | 1681 |
1680 if(argc > 0) | 1682 if(argc > 0) |
1681 usage(); | 1683 usage(); |
1682 | 1684 |
1683 xprintf("%s\n", goversion); | 1685 xprintf("%s\n", goversion); |
1684 } | 1686 } |
LEFT | RIGHT |