67
68 # PICS64 is unique to our environment
69 $(PICS64) := sparc_CFLAGS += -xregs=no%appl -K pic
70 $(PICS64) := sparcv9_CFLAGS += -xregs=no%appl -K pic
71 $(PICS64) := CPPFLAGS += -DPIC -D_REENTRANT
72
73 LDFLAGS += $(ZIGNORE)
74 DYNFLAGS += $(ZIGNORE)
75
76 # Establish the local tools, proto and package area.
77
78 SGSHOME = $(SRC)/cmd/sgs
79 SGSPROTO = $(SGSHOME)/proto/$(MACH)
80 SGSTOOLS = $(SGSHOME)/tools
81 SGSMSGID = $(SGSHOME)/messages
82 SGSMSGDIR = $(SGSHOME)/messages/$(MACH)
83 SGSONLD = $(ROOT)/opt/SUNWonld
84 SGSRPATH = /usr/lib
85 SGSRPATH64 = $(SGSRPATH)/$(MACH64)
86
87 #
88 # Macros to be used to include link against libconv and include vernote.o
89 #
90 VERSREF = -ulink_ver_string
91
92 LDLIBDIR = -L$(SGSHOME)/libld/$(MACH)
93 LDLIBDIR64 = -L$(SGSHOME)/libld/$(MACH64)
94
95 CONVLIBDIR = -L$(SGSHOME)/libconv/$(MACH)
96 CONVLIBDIR64 = -L$(SGSHOME)/libconv/$(MACH64)
97
98 ELFLIBDIR = -L$(SGSHOME)/libelf/$(MACH)
99 ELFLIBDIR64 = -L$(SGSHOME)/libelf/$(MACH64)
100
101 LDDBGLIBDIR = -L$(SGSHOME)/liblddbg/$(MACH)
102 LDDBGLIBDIR64 = -L$(SGSHOME)/liblddbg/$(MACH64)
103
104
105 # The cmd/Makefile.com and lib/Makefile.com define TEXT_DOMAIN. We don't need
106 # this definition as the sgs utilities obtain their domain via sgsmsg(1l).
107
108 DTEXTDOM =
109
110 # Define any generic sgsmsg(1l) flags. The default message generation system
111 # is to use gettext(3i), add the -C flag to switch to catgets(3c).
112
113 SGSMSG = $(SGSTOOLS)/$(MACH)/sgsmsg
114 SGSMSG_PIGLATIN_NL = perl $(SGSTOOLS)/common/sgsmsg_piglatin_nl.pl
115 CHKMSG = $(SGSTOOLS)/chkmsg.sh
116
117 SGSMSGVFLAG =
118 SGSMSGFLAGS = $(SGSMSGVFLAG) -i $(SGSMSGID)/sgs.ident
119 CHKMSGFLAGS = $(SGSMSGTARG:%=-m %) $(SGSMSGCHK:%=-m %)
120
121 # Native targets should use the minimum of ld(1) flags to allow building on
122 # previous releases. We use mapfiles to scope, but don't bother versioning.
123
124 native := DYNFLAGS = -R$(SGSPROTO) -L$(SGSPROTO) $(ZNOVERSION) $(HSONAME)
125
126 # Comment out the following two lines to have the sgs built from the system
127 # link-editor, rather than the local proto link-editor.
128 CC_USE_PROTO = -Yl,$(SGSPROTO)
129 LD_USE_PROTO = $(SGSPROTO)/
130
131 #
132 # lint-related stuff
133 #
134 LIBNAME32 = $(LIBNAME:%=%32)
135 LIBNAME64 = $(LIBNAME:%=%64)
136 LIBNAMES = $(LIBNAME32) $(LIBNAME64)
137
138 SGSLINTOUT = lint.out
139 LINTOUT1 = lint.out.1
140 LINTOUT32 = lint.out.32
141 LINTOUT64 = lint.out.64
142 LINTOUTS = $(SGSLINTOUT) $(LINTOUT1) $(LINTOUT32) $(LINTOUT64)
143
144 LINTLIBSRC = $(LINTLIB:%.ln=%)
145 LINTLIB32 = $(LINTLIB:%.ln=%32.ln)
146 LINTLIB64 = $(LINTLIB:%.ln=%64.ln)
147 LINTLIBS = $(LINTLIB32) $(LINTLIB64)
148
149 LINTFLAGS = -m -errtags=yes -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
|
67
68 # PICS64 is unique to our environment
69 $(PICS64) := sparc_CFLAGS += -xregs=no%appl -K pic
70 $(PICS64) := sparcv9_CFLAGS += -xregs=no%appl -K pic
71 $(PICS64) := CPPFLAGS += -DPIC -D_REENTRANT
72
73 LDFLAGS += $(ZIGNORE)
74 DYNFLAGS += $(ZIGNORE)
75
76 # Establish the local tools, proto and package area.
77
78 SGSHOME = $(SRC)/cmd/sgs
79 SGSPROTO = $(SGSHOME)/proto/$(MACH)
80 SGSTOOLS = $(SGSHOME)/tools
81 SGSMSGID = $(SGSHOME)/messages
82 SGSMSGDIR = $(SGSHOME)/messages/$(MACH)
83 SGSONLD = $(ROOT)/opt/SUNWonld
84 SGSRPATH = /usr/lib
85 SGSRPATH64 = $(SGSRPATH)/$(MACH64)
86
87 # Mimic the structure of an installed system.
88
89 SGSLIBDIR = $(SGSPROTO)/lib
90 SGSPREFIX = $(SGSPROTO)/usr
91 SGSBINDIR = $(SGSPREFIX)/bin
92
93 #
94 # Macros to be used to include link against libconv and include vernote.o
95 #
96 VERSREF = -ulink_ver_string
97
98 LDLIBDIR = -L$(SGSHOME)/libld/$(MACH)
99 LDLIBDIR64 = -L$(SGSHOME)/libld/$(MACH64)
100
101 CONVLIBDIR = -L$(SGSHOME)/libconv/$(MACH)
102 CONVLIBDIR64 = -L$(SGSHOME)/libconv/$(MACH64)
103
104 ELFLIBDIR = -L$(SGSHOME)/libelf/$(MACH)
105 ELFLIBDIR64 = -L$(SGSHOME)/libelf/$(MACH64)
106
107 LDDBGLIBDIR = -L$(SGSHOME)/liblddbg/$(MACH)
108 LDDBGLIBDIR64 = -L$(SGSHOME)/liblddbg/$(MACH64)
109
110
111 # The cmd/Makefile.com and lib/Makefile.com define TEXT_DOMAIN. We don't need
112 # this definition as the sgs utilities obtain their domain via sgsmsg(1l).
113
114 DTEXTDOM =
115
116 # Define any generic sgsmsg(1l) flags. The default message generation system
117 # is to use gettext(3i), add the -C flag to switch to catgets(3c).
118
119 SGSMSG = $(SGSTOOLS)/$(MACH)/sgsmsg
120 SGSMSG_PIGLATIN_NL = perl $(SGSTOOLS)/common/sgsmsg_piglatin_nl.pl
121 CHKMSG = $(SGSTOOLS)/chkmsg.sh
122
123 SGSMSGVFLAG =
124 SGSMSGFLAGS = $(SGSMSGVFLAG) -i $(SGSMSGID)/sgs.ident
125 CHKMSGFLAGS = $(SGSMSGTARG:%=-m %) $(SGSMSGCHK:%=-m %)
126
127 # Native targets should use the minimum of ld(1) flags to allow building on
128 # previous releases. We use mapfiles to scope, but don't bother versioning.
129
130 native := DYNFLAGS = -R$(SGSLIBDIR) -L$(SGSLIBDIR) $(ZNOVERSION) \
131 $(HSONAME)
132
133 # Comment out the following two lines to have the sgs built from the system
134 # link-editor, rather than the local proto link-editor.
135 CC_USE_PROTO = -Yl,$(SGSBINDIR)
136 LD_USE_PROTO = $(SGSBINDIR)/
137
138 #
139 # lint-related stuff
140 #
141 LIBNAME32 = $(LIBNAME:%=%32)
142 LIBNAME64 = $(LIBNAME:%=%64)
143 LIBNAMES = $(LIBNAME32) $(LIBNAME64)
144
145 SGSLINTOUT = lint.out
146 LINTOUT1 = lint.out.1
147 LINTOUT32 = lint.out.32
148 LINTOUT64 = lint.out.64
149 LINTOUTS = $(SGSLINTOUT) $(LINTOUT1) $(LINTOUT32) $(LINTOUT64)
150
151 LINTLIBSRC = $(LINTLIB:%.ln=%)
152 LINTLIB32 = $(LINTLIB:%.ln=%32.ln)
153 LINTLIB64 = $(LINTLIB:%.ln=%64.ln)
154 LINTLIBS = $(LINTLIB32) $(LINTLIB64)
155
156 LINTFLAGS = -m -errtags=yes -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
|