xref: /netbsd-src/external/gpl3/binutils.old/dist/setup.com (revision 75fd0b742a7e4a64301bc6c44e9bc5240c58bb92)
1*75fd0b74Schristos$!
2*75fd0b74Schristos$! Build procedure
3*75fd0b74Schristos$!
4*75fd0b74Schristos$! Note: you need a DCL-compatible gnu make.
5*75fd0b74Schristos$ MAKE="make381"
6*75fd0b74Schristos$ OPT=""
7*75fd0b74Schristos$!
8*75fd0b74Schristos$ if (P1 .EQS. "CONFIGURE") .OR. (P1 .EQS. "ALL")
9*75fd0b74Schristos$ then
10*75fd0b74Schristos$    set def [.bfd]
11*75fd0b74Schristos$    @configure
12*75fd0b74Schristos$    set def [-.libiberty]
13*75fd0b74Schristos$    @configure
14*75fd0b74Schristos$    set def [-.opcodes]
15*75fd0b74Schristos$    @configure
16*75fd0b74Schristos$    set def [-.binutils]
17*75fd0b74Schristos$    @configure
18*75fd0b74Schristos$    set def [-.gas]
19*75fd0b74Schristos$    @configure
20*75fd0b74Schristos$    set def [-]
21*75fd0b74Schristos$ endif
22*75fd0b74Schristos$ if (P1 .EQS. "BUILD") .OR. (P1 .EQS. "ALL")
23*75fd0b74Schristos$ then
24*75fd0b74Schristos$   set def [.bfd]
25*75fd0b74Schristos$   @build
26*75fd0b74Schristos$   set def [-.libiberty]
27*75fd0b74Schristos$   @build
28*75fd0b74Schristos$   set def [-.opcodes]
29*75fd0b74Schristos$   @build
30*75fd0b74Schristos$   set def [-.binutils]
31*75fd0b74Schristos$   @build
32*75fd0b74Schristos$   set def [-.gas]
33*75fd0b74Schristos$   @build
34*75fd0b74Schristos$   set def [-]
35*75fd0b74Schristos$ endif
36*75fd0b74Schristos$ if P1 .EQS. "MAKE"
37*75fd0b74Schristos$ then
38*75fd0b74Schristos$   ARCH=F$GETSYI("ARCH_NAME")
39*75fd0b74Schristos$   ARCH=F$EDIT(arch,"UPCASE")
40*75fd0b74Schristos$   set def [.bfd]
41*75fd0b74Schristos$   'MAKE "ARCH=''ARCH'" "OPT=''OPT'"
42*75fd0b74Schristos$   set def [-.libiberty]
43*75fd0b74Schristos$   'MAKE "ARCH=''ARCH'" "OPT=''OPT'"
44*75fd0b74Schristos$   set def [-.opcodes]
45*75fd0b74Schristos$   'MAKE "ARCH=''ARCH'" "OPT=''OPT'"
46*75fd0b74Schristos$   set def [-.binutils]
47*75fd0b74Schristos$   'MAKE "ARCH=''ARCH'" "OPT=''OPT'"
48*75fd0b74Schristos$   set def [-.gas]
49*75fd0b74Schristos$   'MAKE "ARCH=''ARCH'" "OPT=''OPT'"
50*75fd0b74Schristos$   set def [-]
51*75fd0b74Schristos$ endif
52