12722387fSrie#
22722387fSrie# CDDL HEADER START
32722387fSrie#
42722387fSrie# The contents of this file are subject to the terms of the
52722387fSrie# Common Development and Distribution License (the "License").
62722387fSrie# You may not use this file except in compliance with the License.
72722387fSrie#
82722387fSrie# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92722387fSrie# or http://www.opensolaris.org/os/licensing.
102722387fSrie# See the License for the specific language governing permissions
112722387fSrie# and limitations under the License.
122722387fSrie#
132722387fSrie# When distributing Covered Code, include this CDDL HEADER in each
142722387fSrie# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152722387fSrie# If applicable, add the following below this CDDL HEADER, with the
162722387fSrie# fields enclosed by brackets "[]" replaced with your own identifying
172722387fSrie# information: Portions Copyright [yyyy] [name of copyright owner]
182722387fSrie#
192722387fSrie# CDDL HEADER END
202722387fSrie#
212722387fSrie
222722387fSrie#
232722387fSrie# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
242722387fSrie# Use is subject to license terms.
252722387fSrie#
26cf9a187cSAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
272722387fSrie#
282722387fSrie
292722387fSrie%.o:		../common/%.c
302722387fSrie		$(COMPILE.c) -o $@ $<
312722387fSrie		$(POST_PROCESS_O)
322722387fSrie
332722387fSrie%32.o:		../common/%.c
342722387fSrie		$(COMPILE.c) -o $@ $<
352722387fSrie		$(POST_PROCESS_O)
362722387fSrie
372722387fSrie%64.o:		../common/%.c
382722387fSrie		$(COMPILE.c) -D_ELF64 -o $@ $<
392722387fSrie		$(POST_PROCESS_O)
402722387fSrie
4169b1fd3fSRichard Lowe%.o:		$(SGSCOMMON)/%.c
422722387fSrie		$(COMPILE.c) -o $@ $<
432722387fSrie		$(POST_PROCESS_O)
442722387fSrie
452722387fSrie%.sparc.o:	../common/%.c
462722387fSrie		$(COMPILE.c) -DELFWRAP_SPARC -o $@ $<
472722387fSrie		$(POST_PROCESS_O)
482722387fSrie
492722387fSrie%.sparcv9.o:	../common/%.c
502722387fSrie		$(COMPILE.c) -DELFWRAP_SPARC -D_ELF64 -o $@ $<
512722387fSrie		$(POST_PROCESS_O)
522722387fSrie
532722387fSrie%.i386.o:	../common/%.c
542722387fSrie		$(COMPILE.c) -DELFWRAP_X86 -o $@ $<
552722387fSrie		$(POST_PROCESS_O)
562722387fSrie
572722387fSrie%.amd64.o:	../common/%.c
582722387fSrie		$(COMPILE.c) -DELFWRAP_X86 -D_ELF64 -o $@ $<
592722387fSrie		$(POST_PROCESS_O)
602722387fSrie
612722387fSrie$(PROG):	$(OBJS) $(MAPFILES)
622722387fSrie		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
632722387fSrie		$(POST_PROCESS)
642722387fSrie
652722387fSrieall:		$(PROG)
662722387fSrie
672722387fSrieclean:
682722387fSrie		$(RM) $(OBJS) $(CLEANFILES)
692722387fSrie
70*d8e10381SRichard Loweinstall:	all $(ROOTPROG)
712722387fSrie
722722387fSrieinclude		$(SRC)/cmd/Makefile.targ
732722387fSrie
742722387fSrie# Derived source and header files (messaging).
752722387fSrie
762722387fSriecatalog:	$(BLTMESG)
772722387fSrie
782722387fSriechkmsg:		$(SRCS)
792722387fSrie		sh $(CHKMSG) $(CHKMSGFLAGS) $(SRCS)
802722387fSrie
812722387fSrie$(BLTDEFS) + \
822722387fSrie$(BLTDATA) + \
832722387fSrie$(BLTMESG):	$(SGSMSGALL)
842722387fSrie		$(SGSMSG) $(SGSMSGFLAGS) $(SGSMSGALL)
85