23 #
24 # Definitions common to tool source.
25 #
26 include $(SRC)/Makefile.master
27
28 FILEMODE= 0555
29
30 TOOLS= $(SRC)/tools
31 TOOLS_PROTO= $(TOOLS)/proto/root_$(MACH)-nd
32 ROOTOPT= $(TOOLS_PROTO)/opt
33 ROOTONBLD= $(ROOTOPT)/onbld
34 ROOTONBLDBIN= $(ROOTONBLD)/bin
35 ROOTONBLDBINMACH= $(ROOTONBLD)/bin/$(MACH)
36 ROOTONBLDETC= $(ROOTONBLD)/etc
37 ROOTONBLDLIB= $(ROOTONBLD)/lib
38 ROOTONBLDLIBMACH= $(ROOTONBLD)/lib/$(MACH)
39 ROOTONBLDLIBMACH64= $(ROOTONBLD)/lib/$(MACH)/64
40 ROOTONBLDLIBPERL= $(ROOTONBLD)/lib/perl
41 ROOTONBLDLIBPY= $(ROOTONBLD)/lib/python
42 ROOTONBLDENV= $(ROOTONBLD)/env
43 ROOTONBLDGK= $(ROOTONBLD)/gk
44 ROOTONBLDMAN= $(ROOTONBLD)/man
45 ROOTONBLDMAN1ONBLD= $(ROOTONBLD)/man/man1onbld
46 ROOTONBLDETCABI= $(ROOTONBLD)/etc/abi
47 ROOTONBLDETCEXCEPT= $(ROOTONBLD)/etc/exception_lists
48 ROOTONBLDSHARE= $(ROOTONBLD)/share
49
50 CPPFLAGS= -D_TS_ERRNO
51 ELFSIGN_O= $(TRUE)
52 LDLIBS=
53 LDFLAGS= $(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) \
54 $(MAPFILE.PGA:%=-M%)
55
56 ROOTONBLDPROG= $(PROG:%=$(ROOTONBLDBIN)/%)
57 ROOTONBLDMACHPROG= $(PROG:%=$(ROOTONBLDBINMACH)/%)
58 ROOTONBLDSHFILES= $(SHFILES:%=$(ROOTONBLDBIN)/%)
59 ROOTONBLDMAKEFILES= $(MAKEFILES:%=$(ROOTONBLDBIN)/%)
60 ROOTONBLDMACHSHFILES= $(SHFILES:%=$(ROOTONBLDBINMACH)/%)
61 ROOTONBLDMACHBINARIES= $(BINARIES:%=$(ROOTONBLDBINMACH)/%)
62 ROOTONBLDETCFILES= $(ETCFILES:%=$(ROOTONBLDETC)/%)
63 ROOTONBLDENVFILES= $(ENVFILES:%=$(ROOTONBLDENV)/%)
64 ROOTONBLDGKFILES= $(GKFILES:%=$(ROOTONBLDGK)/.%)
65 ROOTONBLDGKSHFILES= $(SHFILES:%=$(ROOTONBLDGK)/%)
66 ROOTONBLDPERLFILES= $(PERLFILES:%=$(ROOTONBLDBIN)/%)
67 ROOTONBLDPERLMODULES= $(PERLMODULES:%=$(ROOTONBLDLIBPERL)/%)
68 ROOTONBLDPYFILES= $(PYFILES:%=$(ROOTONBLDBIN)/%)
69 ROOTONBLDMAN1ONBLDFILES=$(MAN1ONBLDFILES:%=$(ROOTONBLDMAN1ONBLD)/%)
70 ROOTONBLDABIAUDITFILES= $(ABI_AUDITFILES:%=$(ROOTONBLDETCABI)/%)
71 ROOTONBLDEXCEPTFILES= $(EXCEPTFILES:%=$(ROOTONBLDETCEXCEPT)/%)
72
73 # Break a chicken-and-egg dependency cycle for the tools build
74 SCCSCHECK=@echo would sccscheck
75
76 $(ROOTONBLDETCABI)/%: %
77 $(INS.file)
78
79 $(ROOTONBLDETCEXCEPT)/%: $(CODEMGR_WS)/exception_lists/%
80 $(INS.file)
81
82 $(ROOTONBLDBIN)/%: %
83 $(INS.file)
84
85 $(ROOTONBLDBINMACH)/%: %
86 $(INS.file)
87
88 $(ROOTONBLDETC)/%: %
89 $(INS.file)
90
91 $(ROOTONBLDLIBPERL)/%: %
92 $(INS.file)
93
94 $(ROOTONBLDMAN1ONBLD)/%: %
95 $(INS.file)
96
97 $(ROOTONBLDENV)/%: %
98 $(INS.file)
99
100 $(ROOTONBLDGK)/.%: %
101 $(INS.rename)
102
103 $(ROOTONBLDGK)/%: %
104 $(INS.file)
|
23 #
24 # Definitions common to tool source.
25 #
26 include $(SRC)/Makefile.master
27
28 FILEMODE= 0555
29
30 TOOLS= $(SRC)/tools
31 TOOLS_PROTO= $(TOOLS)/proto/root_$(MACH)-nd
32 ROOTOPT= $(TOOLS_PROTO)/opt
33 ROOTONBLD= $(ROOTOPT)/onbld
34 ROOTONBLDBIN= $(ROOTONBLD)/bin
35 ROOTONBLDBINMACH= $(ROOTONBLD)/bin/$(MACH)
36 ROOTONBLDETC= $(ROOTONBLD)/etc
37 ROOTONBLDLIB= $(ROOTONBLD)/lib
38 ROOTONBLDLIBMACH= $(ROOTONBLD)/lib/$(MACH)
39 ROOTONBLDLIBMACH64= $(ROOTONBLD)/lib/$(MACH)/64
40 ROOTONBLDLIBPERL= $(ROOTONBLD)/lib/perl
41 ROOTONBLDLIBPY= $(ROOTONBLD)/lib/python
42 ROOTONBLDENV= $(ROOTONBLD)/env
43 ROOTONBLDMAN= $(ROOTONBLD)/man
44 ROOTONBLDMAN1ONBLD= $(ROOTONBLD)/man/man1onbld
45 ROOTONBLDETCABI= $(ROOTONBLD)/etc/abi
46 ROOTONBLDETCEXCEPT= $(ROOTONBLD)/etc/exception_lists
47 ROOTONBLDSHARE= $(ROOTONBLD)/share
48
49 CPPFLAGS= -D_TS_ERRNO
50 ELFSIGN_O= $(TRUE)
51 LDLIBS=
52 LDFLAGS= $(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) \
53 $(MAPFILE.PGA:%=-M%)
54
55 ROOTONBLDPROG= $(PROG:%=$(ROOTONBLDBIN)/%)
56 ROOTONBLDMACHPROG= $(PROG:%=$(ROOTONBLDBINMACH)/%)
57 ROOTONBLDSHFILES= $(SHFILES:%=$(ROOTONBLDBIN)/%)
58 ROOTONBLDMAKEFILES= $(MAKEFILES:%=$(ROOTONBLDBIN)/%)
59 ROOTONBLDMACHSHFILES= $(SHFILES:%=$(ROOTONBLDBINMACH)/%)
60 ROOTONBLDMACHBINARIES= $(BINARIES:%=$(ROOTONBLDBINMACH)/%)
61 ROOTONBLDETCFILES= $(ETCFILES:%=$(ROOTONBLDETC)/%)
62 ROOTONBLDENVFILES= $(ENVFILES:%=$(ROOTONBLDENV)/%)
63 ROOTONBLDPERLFILES= $(PERLFILES:%=$(ROOTONBLDBIN)/%)
64 ROOTONBLDPERLMODULES= $(PERLMODULES:%=$(ROOTONBLDLIBPERL)/%)
65 ROOTONBLDPYFILES= $(PYFILES:%=$(ROOTONBLDBIN)/%)
66 ROOTONBLDMAN1ONBLDFILES=$(MAN1ONBLDFILES:%=$(ROOTONBLDMAN1ONBLD)/%)
67 ROOTONBLDABIAUDITFILES= $(ABI_AUDITFILES:%=$(ROOTONBLDETCABI)/%)
68 ROOTONBLDEXCEPTFILES= $(EXCEPTFILES:%=$(ROOTONBLDETCEXCEPT)/%)
69
70 # Break a chicken-and-egg dependency cycle for the tools build
71 SCCSCHECK=@echo would sccscheck
72
73 $(ROOTONBLDETCABI)/%: %
74 $(INS.file)
75
76 $(ROOTONBLDETCEXCEPT)/%: $(CODEMGR_WS)/exception_lists/%
77 $(INS.file)
78
79 $(ROOTONBLDBIN)/%: %
80 $(INS.file)
81
82 $(ROOTONBLDBINMACH)/%: %
83 $(INS.file)
84
85 $(ROOTONBLDETC)/%: %
86 $(INS.file)
87
88 $(ROOTONBLDLIBPERL)/%: %
89 $(INS.file)
90
91 $(ROOTONBLDMAN1ONBLD)/%: %
92 $(INS.file)
93
94 $(ROOTONBLDENV)/%: %
95 $(INS.file)
|