xref: /titanic_50/usr/src/cmd/sgs/elfwrap/Makefile.targ (revision 2722387f30847b828b57ba9ca59d2b47ee9244ec)
1*2722387fSrie#
2*2722387fSrie# CDDL HEADER START
3*2722387fSrie#
4*2722387fSrie# The contents of this file are subject to the terms of the
5*2722387fSrie# Common Development and Distribution License (the "License").
6*2722387fSrie# You may not use this file except in compliance with the License.
7*2722387fSrie#
8*2722387fSrie# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2722387fSrie# or http://www.opensolaris.org/os/licensing.
10*2722387fSrie# See the License for the specific language governing permissions
11*2722387fSrie# and limitations under the License.
12*2722387fSrie#
13*2722387fSrie# When distributing Covered Code, include this CDDL HEADER in each
14*2722387fSrie# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2722387fSrie# If applicable, add the following below this CDDL HEADER, with the
16*2722387fSrie# fields enclosed by brackets "[]" replaced with your own identifying
17*2722387fSrie# information: Portions Copyright [yyyy] [name of copyright owner]
18*2722387fSrie#
19*2722387fSrie# CDDL HEADER END
20*2722387fSrie#
21*2722387fSrie
22*2722387fSrie#
23*2722387fSrie# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*2722387fSrie# Use is subject to license terms.
25*2722387fSrie#
26*2722387fSrie# ident	"%Z%%M%	%I%	%E% SMI"
27*2722387fSrie#
28*2722387fSrie
29*2722387fSrie%.o:		../common/%.c
30*2722387fSrie		$(COMPILE.c) -o $@ $<
31*2722387fSrie		$(POST_PROCESS_O)
32*2722387fSrie
33*2722387fSrie%32.o:		../common/%.c
34*2722387fSrie		$(COMPILE.c) -o $@ $<
35*2722387fSrie		$(POST_PROCESS_O)
36*2722387fSrie
37*2722387fSrie%64.o:		../common/%.c
38*2722387fSrie		$(COMPILE.c) -D_ELF64 -o $@ $<
39*2722387fSrie		$(POST_PROCESS_O)
40*2722387fSrie
41*2722387fSrie%.o:		$(SGSTOOLS)/common/%.c
42*2722387fSrie		$(COMPILE.c) -o $@ $<
43*2722387fSrie		$(POST_PROCESS_O)
44*2722387fSrie
45*2722387fSrie%.sparc.o:	../common/%.c
46*2722387fSrie		$(COMPILE.c) -DELFWRAP_SPARC -o $@ $<
47*2722387fSrie		$(POST_PROCESS_O)
48*2722387fSrie
49*2722387fSrie%.sparcv9.o:	../common/%.c
50*2722387fSrie		$(COMPILE.c) -DELFWRAP_SPARC -D_ELF64 -o $@ $<
51*2722387fSrie		$(POST_PROCESS_O)
52*2722387fSrie
53*2722387fSrie%.i386.o:	../common/%.c
54*2722387fSrie		$(COMPILE.c) -DELFWRAP_X86 -o $@ $<
55*2722387fSrie		$(POST_PROCESS_O)
56*2722387fSrie
57*2722387fSrie%.amd64.o:	../common/%.c
58*2722387fSrie		$(COMPILE.c) -DELFWRAP_X86 -D_ELF64 -o $@ $<
59*2722387fSrie		$(POST_PROCESS_O)
60*2722387fSrie
61*2722387fSrie$(PROG):	$(OBJS) $(MAPFILES)
62*2722387fSrie		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
63*2722387fSrie		$(POST_PROCESS)
64*2722387fSrie
65*2722387fSrieall:		$(PROG)
66*2722387fSrie
67*2722387fSrieclean:
68*2722387fSrie		$(RM) $(OBJS) $(CLEANFILES)
69*2722387fSrie
70*2722387fSriedelete:
71*2722387fSrie		$(RM) $(PROG)
72*2722387fSrie
73*2722387fSrieinstall \
74*2722387fSriepackage:	all $(ROOTPROG)
75*2722387fSrie
76*2722387fSrie.PARALLEL:	$(LINTOUT32) $(LINTOUT64)
77*2722387fSrie
78*2722387fSrielint:		$(LINTOUT32) $(LINTOUT64) $(SGSLINTOUT)
79*2722387fSrie
80*2722387fSrieinclude		$(SRC)/cmd/Makefile.targ
81*2722387fSrieinclude		$(SRC)/cmd/sgs/Makefile.targ
82*2722387fSrie
83*2722387fSrie# Derived source and header files (messaging).
84*2722387fSrie
85*2722387fSriecatalog:	$(BLTMESG)
86*2722387fSrie
87*2722387fSriechkmsg:		$(SRCS)
88*2722387fSrie		sh $(CHKMSG) $(CHKMSGFLAGS) $(SRCS)
89*2722387fSrie
90*2722387fSrie$(BLTDEFS) + \
91*2722387fSrie$(BLTDATA) + \
92*2722387fSrie$(BLTMESG):	$(SGSMSGALL)
93*2722387fSrie		$(SGSMSG) $(SGSMSGFLAGS) $(SGSMSGALL)
94