4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
31 pics/%64.o: ../common/%.c
32 $(COMPILE.c) -D_ELF64 -o $@ $<
37 $(COMPILE.c) -DELF -o $@ $<
41 pics/%.o: ../common/%.c
45 all: $(BLTSRCS) .WAIT $(LIBS) $(LIBLINKS)
47 install: all .WAIT $(ROOTFS_LIBS64) $(ROOTFS_LINKS64) \
50 lint: $(LINTLIB) $(LINTOUT32) $(LINTOUT64) $(SGSLINTOUT)
52 .PARALLEL: $(LINTOUT32) $(LINTOUT64)
60 $(SYMLINK) $(DYNLIB) $(LIBLINKS)
62 CLOBBERFILES += $(LIBLINKS)
64 # include common library targets
66 include $(SRC)/lib/Makefile.targ
67 include $(SRC)/cmd/sgs/Makefile.targ
69 xlate.c: ../common/xlate.m4
70 $(M4) < ../common/xlate.m4 > xlate.c
72 xlate64.c: ../common/xlate64.m4
73 $(M4) < ../common/xlate64.m4 > xlate64.c
88 # Derived source and header files (messaging). Make sure that the sgsmsg
89 # command is constructed - libelf might not be built with the whole sgs.
94 sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS)
97 $(BLTDATA): $(SGSMSG) $(SGSMSGTARG)
98 $(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG)
100 $(BLTMESG): $(SGSMSG) $(SGSMSGALL) xlate.c xlate64.c
101 $(SGSMSG) $(SGSMSGFLAGS1) $(SGSMSGALL)
104 @ cd $(SGSTOOLS)/$(MACH); pwd; $(MAKE) catalog
110 include ../../Makefile.sub.64