dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / sgs / liblddbg / Makefile.com
blobb70c8c8ff41896a00f49b92cc9ac9c7e56c99fca
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) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2016 RackTop Systems.
27 LIBRARY =       liblddbg.a
28 VERS =          .4
30 COMOBJS =       args.o          audit.o         basic.o         debug.o \
31                 syminfo.o       tls.o
33 COMOBJS32 =     bindings32.o    cap32.o         dlfcns32.o      dynamic32.o \
34                 elf32.o         entry32.o       files32.o       got32.o \
35                 libs32.o        map32.o         move32.o        phdr32.o \
36                 relocate32.o    sections32.o    segments32.o    shdr32.o \
37                 statistics32.o  support32.o     syms32.o        unused32.o \
38                 util32.o        version32.o
40 COMOBJS64 =     bindings64.o    cap64.o         dlfcns64.o      dynamic64.o \
41                 elf64.o         entry64.o       files64.o       got64.o \
42                 libs64.o        map64.o         move64.o        phdr64.o \
43                 relocate64.o    sections64.o    segments64.o    shdr64.o \
44                 statistics64.o  support64.o     syms64.o        unused64.o \
45                 util64.o        version64.o
47 BLTOBJ =        msg.o
49 TOOLOBJ =       alist.o
51 OBJECTS =       $(BLTOBJ) $(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(TOOLOBJ)
54 include         $(SRC)/lib/Makefile.lib
55 include         $(SRC)/cmd/sgs/Makefile.com
57 SRCDIR =        ../common
59 CERRWARN +=     -Wno-unused-value
60 CERRWARN +=     -Wno-uninitialized
61 CERRWARN +=     -Wno-parentheses
63 CPPFLAGS +=     -I$(SRCBASE)/lib/libc/inc
64 DYNFLAGS +=     $(VERSREF) $(CC_USE_PROTO) '-R$$ORIGIN'
65 LDLIBS +=       $(CONVLIBDIR) $(CONV_LIB) -lc
67 native :=       DYNFLAGS        += $(CONVLIBDIR)
68 native :=       CPPFLAGS        += -DNATIVE_BUILD -D__UNLEASHED_VISIBLE
70 BLTDEFS =       msg.h
71 BLTDATA =       msg.c
72 BLTMESG =       $(SGSMSGDIR)/liblddbg
74 BLTFILES =      $(BLTDEFS) $(BLTDATA) $(BLTMESG)
76 SGSMSGCOM =     ../common/liblddbg.msg
77 SGSMSGALL =     $(SGSMSGCOM)
78 SGSMSGTARG =    $(SGSMSGCOM)
79 SGSMSGFLAGS +=  -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n liblddbg_msg
81 CHKSRCS =       $(COMOBJS32:%32.o=../common/%.c)
83 SRCS =          ../common/llib-llddbg
84 LIBSRCS =       $(COMOBJS:%.o=../common/%.c) \
85                 $(TOOLOBJ:%.o=$(SGSTOOLS)/common/%.c) $(BLTDATA)
87 CLEANFILES +=   $(BLTFILES)
88 CLOBBERFILES += $(DYNLIB) $(LIBLINKS)
90 ROOTFS_DYNLIB = $(DYNLIB:%=$(ROOTFS_LIBDIR)/%)