xref: /titanic_41/usr/src/cmd/sgs/libelf/Makefile.targ.64 (revision 29949e866e40b95795203f3ee46f44a197c946e4)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 1997-2003 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# cmd/sgs/libelf/Makefile.targ.64
29
30objs/%.o \
31pics/%.o:	%.c
32		$(COMPILE.c) -o $@ $<
33		$(POST_PROCESS_O)
34
35objs/%64.o \
36pics/%64.o:	../common/%.c
37		$(COMPILE.c) -D_ELF64 -o $@ $<
38		$(POST_PROCESS_O)
39
40objs/%.o \
41pics/%.o:	../misc/%.c
42		$(COMPILE.c) -DELF -o $@ $<
43		$(POST_PROCESS_O)
44
45objs/%.o \
46pics/%.o:	../common/%.c
47		$(COMPILE.c) -o $@ $<
48		$(POST_PROCESS_O)
49
50all:		$(BLTSRCS) .WAIT $(LIBS) $(LIBLINKS)
51
52install:	all .WAIT $(ROOTFS_LIBS64) $(ROOTFS_LINKS64) \
53		$(ROOTFS_LINTLIB64)
54
55lint:		$(LINTLIB) $(LINTOUT32) $(LINTOUT64) $(SGSLINTOUT)
56
57$(VAR_POUND_2)lint :=		LIBTHREADFLAG=-lthread
58
59.PARALLEL:	$(LINTOUT32) $(LINTOUT64)
60
61
62delete:
63		$(RM) $(DYNLIB)
64
65$(DYNLIB):	$(MAPFILES)
66
67$(VAR_SPEC_ON)$(MAPFILE):
68$(VAR_SPEC_ON)		@ cd $(MAPDIR); $(MAKE) mapfile
69$(VAR_SPEC_OFF)$(MAPFILE):
70$(VAR_SPEC_OFF)		@ sccs get mapfile
71
72$(LIBLINKS):
73		$(RM) $(LIBLINKS)
74		$(SYMLINK) $(DYNLIB) $(LIBLINKS)
75
76# include common library targets
77#
78include		$(SRC)/lib/Makefile.targ
79include		$(SRC)/cmd/sgs/Makefile.targ
80
81xlate.c:	../common/xlate.m4
82		$(M4) < ../common/xlate.m4 > xlate.c
83
84xlate64.c:	../common/xlate64.m4
85		$(M4) < ../common/xlate64.m4 > xlate64.c
86
87objs/msg.o \
88pics/msg.o:	msg.c
89
90objs/error.o \
91pics/error.o:	msg.h
92
93objs/ar.o \
94pics/ar.o:	msg.h
95
96objs/xlate.o \
97pics/xlate.o:	xlate.c
98
99
100# Derived source and header files (messaging).  Make sure that the sgsmsg
101# command is constructed - libelf might not be built with the whole sgs.
102
103catalog:	$(BLTMESG)
104
105chkmsg:		$(LIBSRCS)
106		sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS)
107
108$(BLTDEFS) + \
109$(BLTDATA):	$(SGSMSG) $(SGSMSGTARG)
110		$(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG)
111
112$(BLTMESG):	$(SGSMSG) $(SGSMSGALL) xlate.c xlate64.c
113		$(SGSMSG) $(SGSMSGFLAGS1) $(SGSMSGALL)
114
115$(SGSMSG):	FRC
116		@ cd $(SGSTOOLS)/$(MACH); pwd; $(MAKE) catalog
117		@ pwd
118
119#
120# 64-bit overrides
121#
122include ../../Makefile.sub.64
123
124FRC:
125