8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / sgs / rtld / sparcv9 / Makefile
blobeafc1b0022bcb4ae445483353700727837c95507
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
23 # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
26 # Object lists are organized into primary (most frequently used code) and
27 # secondary lists (less frequently used code, ie. a.out support).
29 P_COMOBJS= debugdata.o \
30 analyze.o elf.o external.o globals.o \
31 malloc.o paths.o setup.o util.o \
32 dlfcns.o config_elf.o locale.o tsort.o \
33 remove.o move.o tls.o cap.o
35 S_COMOBJS= debug.o audit.o object.o
37 G_MACHOBJS= doreloc.o
39 P_MACHOBJS= sparc_elf.o _setup.o
41 CP_MACHOBJS= common_sparc.o
43 S_MACHOBJS=
45 P_ASOBJS= boot.o boot_elf.o caller.o
47 S_ASOBJS=
49 CRTSRCS= ../../../../lib/common/sparcv9
50 CRTI= pics/crti.o
51 CRTN= pics/crtn.o
52 CRTS= $(CRTI) $(CRTN)
54 CHKSRCS= $(SRCBASE)/uts/common/krtld/reloc.h
56 BASEPLAT = sparc
58 include $(SRC)/Makefile.master
60 # We build sparc objects with cc by default
61 MAPFILE-ORDER = ../common/mapfile-order-devpro
62 $(__GNUC64)MAPFILE-ORDER = ../common/mapfile-order-gcc
64 include $(SRC)/cmd/sgs/rtld/Makefile.com
65 include $(SRC)/lib/Makefile.lib.64
67 # Add any machine specific flags.
69 CPPFLAGS += -I../../../../uts/sparc/krtld
70 CFLAGS += -xregs=no%appl
71 ASFLAGS += -s -K pic -D__sparcv9 -D_ELF64 $(sparcv9_XARCH)
72 ADBGENFLAGS += -mlp64
73 ADBGENCFLAGS += -erroff=%all
74 ADBSUB= $(ADBSUB64)
75 CPPFLAGS += -D_ELF64
76 LINTFLAGS64 += $(VAR_LINTFLAGS64)
77 SONAME= /lib/sparcv9/ld.so.1
79 SGSMSGTARG += $(SGSMSGSPARC) $(SGSMSGSPARC64) $(SGSMSG64)
81 LDLIB = -L ../../libld/$(MACH64)
82 RTLDLIB = -L ../../librtld/$(MACH64)
84 CPICLIB = $(CPICLIB64)
85 LDDBGLIBDIR = $(LDDBGLIBDIR64)
86 CONVLIBDIR = $(CONVLIBDIR64)
89 .KEEP_STATE:
91 all: $(RTLD)
93 install: all $(ROOTDYNLIB64)
95 lint: $(LINTOUT64)
97 adbmacros: adb .WAIT $(ADBSCRIPTS)
99 adbinstall: adbmacros .WAIT $(ROOTADB64)
101 pics/%.o: ../sparc/%.c
102 $(COMPILE.c) -o $@ $<
103 $(POST_PROCESS_O)
105 include $(SRC)/cmd/sgs/rtld/Makefile.targ
106 include ../../Makefile.sub.64