dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / sgs / rtld / amd64 / Makefile
blob16a79011343f2091d1f62dbd6cd40f13eb3dcd2d
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) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
26 BASEPLAT = amd64
27 BITS = 64
29 # Object lists are organized into primary (most frequently used code) and
30 # secondary lists (less frequently used code, ie. a.out support).
32 P_COMOBJS= debugdata.o \
33 analyze.o elf.o external.o globals.o \
34 malloc.o paths.o setup.o util.o \
35 dlfcns.o config_elf.o locale.o tsort.o \
36 remove.o move.o tls.o cap.o
38 S_COMOBJS= debug.o audit.o object.o
40 G_MACHOBJS= doreloc.o
42 P_MACHOBJS= amd64_elf.o _setup.o dlamd64getunwind.o
44 CP_MACHOBJS=
46 S_MACHOBJS=
48 P_ASOBJS= boot.o boot_elf.o caller.o
50 S_ASOBJS=
52 CRTSRCS= ../../../../lib/crt/amd64
53 CRTI= pics/crti.o
54 CRTN= pics/crtn.o
55 CRTS= $(CRTI) $(CRTN)
57 include $(SRC)/cmd/sgs/rtld/Makefile.com
58 include $(SRC)/lib/Makefile.lib.64
60 MAPFILE-ORDER = ../common/mapfile-order-gcc
62 # Add any machine specific flags.
64 CFLAGS += -mno-app-regs
65 ASFLAGS += -D__amd64 -D_ELF64 $(amd64_ASFLAGS)
66 ADBGENFLAGS += -mlp64
67 ADBSUB= $(ADBSUB64)
68 CPPFLAGS += -D_ELF64
69 SONAME= /lib/amd64/ld.so.1
71 SGSMSGTARG += $(SGSMSGINTEL) $(SGSMSGINTEL64) $(SGSMSG64)
73 LDLIB = -L ../../libld/$(MACH64)
74 RTLDLIB = -L ../../librtld/$(MACH64)
76 CPICLIB = $(CPICLIB64)
77 LDDBGLIBDIR = $(LDDBGLIBDIR64)
78 CONVLIBDIR = $(CONVLIBDIR64)
80 .KEEP_STATE:
82 all: $(RTLD)
84 install: all $(ROOTDYNLIB64)
86 adbmacros: adb .WAIT $(ADBSCRIPTS)
88 adbinstall: adbmacros .WAIT $(ROOTADB64)
90 include $(SRC)/cmd/sgs/rtld/Makefile.targ
91 include ../../Makefile.sub.64