dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / sgs / libelf / Makefile.com
blob23ab33db91ae2e42100d44888a43125005acb2a5
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
22 # Copyright 2015 Gary Mills
23 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
26 LIBRARY=        libelf.a
27 VERS=           .1
29 MACHOBJS=
30 COMOBJS=        ar.o            begin.o         cntl.o          cook.o \
31                 data.o          end.o           fill.o          flag.o \
32                 getarhdr.o      getarsym.o      getbase.o       getdata.o \
33                 getehdr.o       getident.o      getphdr.o       getscn.o \
34                 getshdr.o \
35                 getphnum.o      getshnum.o      getshstrndx.o \
36                 hash.o          input.o         kind.o \
37                 ndxscn.o        newdata.o       newehdr.o       newphdr.o \
38                 newscn.o        next.o          nextscn.o       output.o \
39                 rand.o          rawdata.o       rawfile.o       rawput.o \
40                 strptr.o        update.o        error.o         gelf.o \
41                 clscook.o       checksum.o
42 CLASSOBJS=      clscook64.o     newehdr64.o     newphdr64.o     update64.o \
43                 checksum64.o
44 BLTOBJS=        msg.o           xlate.o         xlate64.o
45 MISCOBJS=       String.o        args.o          demangle.o      nlist.o \
46                 nplist.o
47 MISCOBJS64=     nlist.o
49 OBJECTS=        $(BLTOBJS)  $(MACHOBJS)  $(COMOBJS)  $(CLASSOBJS) $(MISCOBJS)
51 include $(SRC)/lib/Makefile.lib
53 # Use the value of M4 set in Makefile.master via Makefile.lib
55 include $(SRC)/cmd/sgs/Makefile.com
57 MAPFILES =      ../common/mapfile-vers
59 DYNFLAGS +=     $(VERSREF)
60 LDLIBS +=       $(CONVLIBDIR) $(CONV_LIB) -lc
62 CERRWARN +=     -Wno-parentheses
63 CERRWARN +=     -Wno-uninitialized
65 BUILD.AR=       $(RM) $@ ; \
66                 $(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)`
67                 $(POST_PROCESS_A)
70 BLTDEFS=        msg.h
71 BLTDATA=        msg.c
72 BLTMESG=        $(SGSMSGDIR)/libelf
74 BLTFILES=       $(BLTDEFS) $(BLTDATA) $(BLTMESG)
76 SGSMSGCOM=      ../common/libelf.msg
77 SGSMSG32=       ../common/libelf.32.msg
78 SGSMSGTARG=     $(SGSMSGCOM)
79 SGSMSGALL=      $(SGSMSGCOM) $(SGSMSG32)
81 SGSMSGFLAGS1=   $(SGSMSGFLAGS) -m $(BLTMESG)
82 SGSMSGFLAGS2=   $(SGSMSGFLAGS) -h $(BLTDEFS) -d $(BLTDATA) -n libelf_msg
84 BLTSRCS=        $(BLTOBJS:%.o=%.c)
85 LIBSRCS=        $(COMOBJS:%.o=../common/%.c)  $(MISCOBJS:%.o=../misc/%.c) \
86                 $(MACHOBJS:%.o=%.c)  $(BLTSRCS)
87 SRCS=           ../common/llib-lelf
89 ROOTFS_DYNLIB=          $(DYNLIB:%=$(ROOTFS_LIBDIR)/%)
90 ROOTFS_DYNLIB64=        $(DYNLIB:%=$(ROOTFS_LIBDIR64)/%)
92 $(ROOTFS_DYNLIB) :=     FILEMODE= 755
93 $(ROOTFS_DYNLIB64) :=   FILEMODE= 755
95 LIBS =          $(DYNLIB)
97 CLEANFILES +=   $(BLTSRCS) $(BLTFILES)
99 .PARALLEL:      $(LIBS)