3057 Remove sgml util from cmd/man
[unleashed.git] / usr / src / tools / Makefile.tools
blobc2bfdefd7496e5729c6c0ccb8015e028c7810bd3
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Definitions common to tool source.
26 include $(SRC)/Makefile.master
28 FILEMODE=       0555
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 ROOTONBLDLIBPERL=       $(ROOTONBLD)/lib/perl
40 ROOTONBLDLIBPY=         $(ROOTONBLD)/lib/python
41 ROOTONBLDLIBPY_24=      $(ROOTONBLD)/lib/python2.4
42 ROOTONBLDLIBPY_26=      $(ROOTONBLD)/lib/python2.6
43 ROOTONBLDENV=           $(ROOTONBLD)/env
44 ROOTONBLDGK=            $(ROOTONBLD)/gk
45 ROOTONBLDMAN=           $(ROOTONBLD)/man
46 ROOTONBLDMAN1=          $(ROOTONBLD)/man/man1
47 ROOTONBLDETCABI=        $(ROOTONBLD)/etc/abi
48 ROOTONBLDETCEXCEPT=     $(ROOTONBLD)/etc/exception_lists
50 CPPFLAGS=               -D_TS_ERRNO
51 ELFSIGN_O=              $(TRUE)
52 LDLIBS=
53 LDFLAGS=                $(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) \
54                             $(MAPFILE.PGA:%=-M%)
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 ROOTONBLDMAN1FILES=     $(MAN1FILES:%=$(ROOTONBLDMAN1)/%)
70 ROOTONBLDABIAUDITFILES= $(ABI_AUDITFILES:%=$(ROOTONBLDETCABI)/%)
71 ROOTONBLDEXCEPTFILES=   $(EXCEPTFILES:%=$(ROOTONBLDETCEXCEPT)/%)
73 # Break a chicken-and-egg dependency cycle for the tools build
74 SCCSCHECK=@echo would sccscheck
76 $(ROOTONBLDETCABI)/%: %
77         $(INS.file)
79 $(ROOTONBLDETCEXCEPT)/%: $(CODEMGR_WS)/exception_lists/%
80         $(INS.file)
82 $(ROOTONBLDBIN)/%: %
83         $(INS.file)
85 $(ROOTONBLDBINMACH)/%: %
86         $(INS.file)
88 $(ROOTONBLDETC)/%: %
89         $(INS.file)
91 $(ROOTONBLDLIBPERL)/%: %
92         $(INS.file)
94 $(ROOTONBLDMAN1)/%: %
95         $(INS.file)
97 $(ROOTONBLDENV)/%: %
98         $(INS.file)
100 $(ROOTONBLDGK)/.%: %
101         $(INS.rename)
103 $(ROOTONBLDGK)/%: %
104         $(INS.file)