13244bcaaSab#
23244bcaaSab# CDDL HEADER START
33244bcaaSab#
43244bcaaSab# The contents of this file are subject to the terms of the
53244bcaaSab# Common Development and Distribution License (the "License").
63244bcaaSab# You may not use this file except in compliance with the License.
73244bcaaSab#
83244bcaaSab# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93244bcaaSab# or http://www.opensolaris.org/os/licensing.
103244bcaaSab# See the License for the specific language governing permissions
113244bcaaSab# and limitations under the License.
123244bcaaSab#
133244bcaaSab# When distributing Covered Code, include this CDDL HEADER in each
143244bcaaSab# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153244bcaaSab# If applicable, add the following below this CDDL HEADER, with the
163244bcaaSab# fields enclosed by brackets "[]" replaced with your own identifying
173244bcaaSab# information: Portions Copyright [yyyy] [name of copyright owner]
183244bcaaSab#
193244bcaaSab# CDDL HEADER END
203244bcaaSab#
21d29b2c44Sab
223244bcaaSab#
234f680cc6SAli Bahrami# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
243244bcaaSab# Use is subject to license terms.
253244bcaaSab#
263244bcaaSab
27d29b2c44Sab%.o:		../common/%.c
28d29b2c44Sab		$(COMPILE.c) -o $@ $<
29d29b2c44Sab		$(POST_PROCESS_O)
30d29b2c44Sab
31d29b2c44Sab%32.o:		../common/%.c
32d29b2c44Sab		$(COMPILE.c) -o $@ $<
33d29b2c44Sab		$(POST_PROCESS_O)
34d29b2c44Sab
35d29b2c44Sab%64.o:		../common/%.c
36d29b2c44Sab		$(COMPILE.c) -D_ELF64 -o $@ $<
37d29b2c44Sab		$(POST_PROCESS_O)
38d29b2c44Sab
3969b1fd3fSRichard Lowe%.o:		$(SGSCOMMON)/%.c
40d29b2c44Sab		$(COMPILE.c) -o $@ $<
41d29b2c44Sab		$(POST_PROCESS_O)
42d29b2c44Sab
4399f63845Sab
44d29b2c44Sab$(PROG):	$(OBJS) $(MAPFILE)
45d29b2c44Sab		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
46d29b2c44Sab		$(POST_PROCESS)
47d29b2c44Sab
48d29b2c44Sab$(ROOTBIN64)/%: %
49d29b2c44Sab		$(INS.file)
50d29b2c44Sab
51d29b2c44Saball:		$(PROG)
52d29b2c44Sab
53d29b2c44Sabclean:
54d29b2c44Sab		$(RM) $(OBJS) $(CLEANFILES)
55d29b2c44Sab
56*d8e10381SRichard Loweinstall:	all $(ROOTPROG)
573244bcaaSab
58d29b2c44Sabinclude		$(SRC)/cmd/Makefile.targ
593244bcaaSab
60d29b2c44Sab# Derived source and header files (messaging).
613244bcaaSab
62d29b2c44Sabcatalog:	$(BLTMESG)
63d29b2c44Sab		@ cd ../modules; pwd; $(MAKE) catalog
643244bcaaSab
65d29b2c44Sabchkmsg:		$(SRCS)
66d29b2c44Sab		sh $(CHKMSG) $(CHKMSGFLAGS) $(SRCS)
673244bcaaSab
68d29b2c44Sab$(BLTDEFS) + \
69d29b2c44Sab$(BLTDATA) + \
70d29b2c44Sab$(BLTMESG):	$(SGSMSGALL)
71d29b2c44Sab		$(SGSMSG) $(SGSMSGFLAGS) $(SGSMSGALL)
72