Print this page
5468 Missing dependencies in lib/Makefile
5709 Add binary compatibility with Solaris 10 update 10.


   3 #
   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.
   7 #
   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.
  12 #
  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]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.

  23 #
  24 
  25 .KEEP_STATE:
  26 .SUFFIXES:
  27 
  28 include $(SRC)/cmd/Makefile.cmd
  29 MODCLASS = plugins
  30 
  31 #
  32 # Set PROG and OBJS based on the values of MODULE and SRCS.  We expect that
  33 # these macros to be defined by the Makefile that is including this file.
  34 #
  35 PROG = $(MODULE:%=%.so)
  36 YOBJS = $(YSRCS:%.y=%.o)
  37 OBJS = $(YOBJS) $(SRCS:%.c=%.o)
  38 CONF = $(MODULE:%=%.conf)
  39 
  40 #
  41 # We may have sources from directories other than the current, but
  42 # we build all objects in the current directory (not necessarily in the


  83 LDFLAGS += $(ZDEFS) $(ZTEXT) $(ZIGNORE)
  84 
  85 MAPFILE-DMOD = $(SRC)/cmd/mdb/common/modules/conf/mapfile-extern
  86 
  87 
  88 $(PROG) := LDFLAGS += -M$(APIMAP) -M$(FMRIMAP)
  89 $(PROG) := LDLIBS += -lnvpair -lc
  90 
  91 all: $(PROG) $(DMODPROG)
  92 
  93 .NO_PARALLEL:
  94 .PARALLEL: $(OBJS) $(LINTFILES) $(DMOD_OBJS) $(DMODLINTFILES)
  95 
  96 $(PROG): $(OBJS) $(APIMAP)
  97         $(LINK.c) $(LINKOBJS) -o $@ $(LDLIBS)
  98         $(CTFMERGE) -L VERSION -o $@ $(LINKOBJS)
  99         $(POST_PROCESS_SO)
 100 
 101 $(DMODPROG): $(DMOD_OBJS) $(MAPFILE-DMOD)
 102         -@mkdir -p $(@D)
 103         $(LINK.c) $(DMOD_OBJS) $(MAPFILE-DMOD:%=-M%) -o $@ -lc
 104         $(POST_PROCESS)
 105 
 106 %.o: %.c
 107         $(COMPILE.c) $< -o $(@F)
 108         $(CTFCONVERT) $(CTFCVTFLAGS) $(@F)
 109 
 110 clean:
 111         $(RM) $(OBJS) $(DMOD_OBJS) $(LINTFILES) $(DMODLINTFILES) $(CLEANFILES) \
 112             $(LINKOBJS)
 113 
 114 clobber: clean
 115         $(RM) $(PROG) $(DMODPROG)
 116 
 117 %.ln: %.c
 118         $(LINT.c) -dirout=$(@D) -c $<
 119 
 120 lint_prog: $(LINTFILES)
 121         $(LINT) $(LINTFLAGS) $(LINTFILES) $(LDLIBS)
 122 
 123 lint_dmod: $(DMODLINTFILES)


   3 #
   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.
   7 #
   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.
  12 #
  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]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright 2015 RackTop Systems.
  24 #
  25 
  26 .KEEP_STATE:
  27 .SUFFIXES:
  28 
  29 include $(SRC)/cmd/Makefile.cmd
  30 MODCLASS = plugins
  31 
  32 #
  33 # Set PROG and OBJS based on the values of MODULE and SRCS.  We expect that
  34 # these macros to be defined by the Makefile that is including this file.
  35 #
  36 PROG = $(MODULE:%=%.so)
  37 YOBJS = $(YSRCS:%.y=%.o)
  38 OBJS = $(YOBJS) $(SRCS:%.c=%.o)
  39 CONF = $(MODULE:%=%.conf)
  40 
  41 #
  42 # We may have sources from directories other than the current, but
  43 # we build all objects in the current directory (not necessarily in the


  84 LDFLAGS += $(ZDEFS) $(ZTEXT) $(ZIGNORE)
  85 
  86 MAPFILE-DMOD = $(SRC)/cmd/mdb/common/modules/conf/mapfile-extern
  87 
  88 
  89 $(PROG) := LDFLAGS += -M$(APIMAP) -M$(FMRIMAP)
  90 $(PROG) := LDLIBS += -lnvpair -lc
  91 
  92 all: $(PROG) $(DMODPROG)
  93 
  94 .NO_PARALLEL:
  95 .PARALLEL: $(OBJS) $(LINTFILES) $(DMOD_OBJS) $(DMODLINTFILES)
  96 
  97 $(PROG): $(OBJS) $(APIMAP)
  98         $(LINK.c) $(LINKOBJS) -o $@ $(LDLIBS)
  99         $(CTFMERGE) -L VERSION -o $@ $(LINKOBJS)
 100         $(POST_PROCESS_SO)
 101 
 102 $(DMODPROG): $(DMOD_OBJS) $(MAPFILE-DMOD)
 103         -@mkdir -p $(@D)
 104         $(LINK.c) $(DMOD_OBJS) $(MAPFILE-DMOD:%=-M%) -o $@ $(LDLIBS) -lc
 105         $(POST_PROCESS)
 106 
 107 %.o: %.c
 108         $(COMPILE.c) $< -o $(@F)
 109         $(CTFCONVERT) $(CTFCVTFLAGS) $(@F)
 110 
 111 clean:
 112         $(RM) $(OBJS) $(DMOD_OBJS) $(LINTFILES) $(DMODLINTFILES) $(CLEANFILES) \
 113             $(LINKOBJS)
 114 
 115 clobber: clean
 116         $(RM) $(PROG) $(DMODPROG)
 117 
 118 %.ln: %.c
 119         $(LINT.c) -dirout=$(@D) -c $<
 120 
 121 lint_prog: $(LINTFILES)
 122         $(LINT) $(LINTFLAGS) $(LINTFILES) $(LDLIBS)
 123 
 124 lint_dmod: $(DMODLINTFILES)