Print this page
5468 Missing dependencies in lib/Makefile


   6 # (the "License").  You may not use this file except in compliance
   7 # with the License.
   8 #
   9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10 # or http://www.opensolaris.org/os/licensing.
  11 # See the License for the specific language governing permissions
  12 # and limitations under the License.
  13 #
  14 # When distributing Covered Code, include this CDDL HEADER in each
  15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16 # If applicable, add the following below this CDDL HEADER, with the
  17 # fields enclosed by brackets "[]" replaced with your own identifying
  18 # information: Portions Copyright [yyyy] [name of copyright owner]
  19 #
  20 # CDDL HEADER END
  21 #
  22 #
  23 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # ident "%Z%%M% %I%     %E% SMI"
  27 #
  28 # cmd/picl/plugins/common/devtree/Makefile
  29 #
  30 LIBRARY=        libpicldevtree.a
  31 VERS=           .1
  32 
  33 OBJECTS=        picldevtree.o
  34 
  35 # include library definitions
  36 include $(SRC)/lib/Makefile.lib
  37 
  38 include $(SRC)/cmd/picl/plugins/Makefile.com
  39 
  40 SRCS=           $(OBJECTS:%.o=%.c)
  41 
  42 LIBS =          $(DYNLIB)
  43 
  44 ROOTLIBDIR =    $(USR_LIB_PLUGINDIR)
  45 ROOTETC =       $(ROOT)/etc
  46 ROOTLIB =       $(ROOT)/usr/lib
  47 
  48 CLEANFILES=     $(LINTOUT) $(LINTLIB)
  49 CLOBBERFILES += $(LIBLINKS)
  50 
  51 CPPFLAGS +=     -I$(SRC)/lib/libsysevent -I$(SRC)/uts/common
  52 
  53 CFLAGS +=       $(CCVERBOSE) $(C_PICFLAGS)
  54 CPPFLAGS +=     -D_REENTRANT
  55 LDLIBS +=       -L$(SRC)/lib/libsysevent -L$(SRC)/lib/libpicltree/$(MACH)
  56 LDLIBS +=       -lc -lkstat -ldevinfo -lpicltree -lnvpair
  57 LDLIBS +=       -L../piclevent -L$(ROOT)/usr/lib/picl/plugins -lpiclevent
  58 LDLIBS +=       -R/usr/platform/\$$PLATFORM/lib/picl/plugins
  59 LDLIBS +=       -R/usr/platform/sun4u/lib/picl/plugins
  60 LDLIBS +=       -R/usr/lib/picl/plugins
  61 
  62 LINTFLAGS +=    -L$(SRC)/lib/libpicltree/$(MACH) -lpicltree
  63 
  64 .KEEP_STATE:
  65 
  66 SUBDIRS=
  67 
  68 POFILE= picldevtree.po
  69 
  70 all :=          TARGET= all
  71 install :=      TARGET= install
  72 clean :=        TARGET= clean
  73 clobber :=      TARGET= clobber
  74 lint :=         TARGET= lint
  75 _msg :=         TARGET= _msg
  76 
  77 all: $(LIBS) $(LIBLINKS)
  78 
  79 install:        $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) 
  80 
  81 _msg:   $(MSGDOMAIN) $(POFILE)
  82         $(RM) $(MSGDOMAIN)/$(POFILE)
  83         $(CP) $(POFILE) $(MSGDOMAIN)
  84 
  85 
  86 $(MSGDOMAIN):
  87         $(INS.dir)
  88 
  89 $(LIBLINKS):    FRC
  90         $(RM) $@; $(SYMLINK) $(DYNLIB) $@
  91 
  92 # include library targets
  93 include $(SRC)/cmd/picl/plugins/Makefile.targ
  94 include $(SRC)/lib/Makefile.targ
  95 
  96 lint :
  97         $(LINT.c) $(SRCS)
  98 
  99 %.so: %.o
 100         $(LINK.c) -o $@ $(GSHARED) -h $@ $<
 101 
 102 %.o: %.c
 103         $(COMPILE.c) -o $@ $<
 104 
 105 $(SUBDIRS): FRC
 106         @cd $@; pwd; $(MAKE) $(TARGET)
 107 
 108 FRC:


   6 # (the "License").  You may not use this file except in compliance
   7 # with the License.
   8 #
   9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10 # or http://www.opensolaris.org/os/licensing.
  11 # See the License for the specific language governing permissions
  12 # and limitations under the License.
  13 #
  14 # When distributing Covered Code, include this CDDL HEADER in each
  15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16 # If applicable, add the following below this CDDL HEADER, with the
  17 # fields enclosed by brackets "[]" replaced with your own identifying
  18 # information: Portions Copyright [yyyy] [name of copyright owner]
  19 #
  20 # CDDL HEADER END
  21 #
  22 #
  23 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright 2015 RackTop Systems.
  27 #
  28 # cmd/picl/plugins/common/devtree/Makefile
  29 #
  30 LIBRARY=        libpicldevtree.a
  31 VERS=           .1
  32 
  33 OBJECTS=        picldevtree.o
  34 
  35 # include library definitions
  36 include $(SRC)/lib/Makefile.lib
  37 
  38 include $(SRC)/cmd/picl/plugins/Makefile.com
  39 
  40 SRCS=           $(OBJECTS:%.o=%.c)
  41 
  42 LIBS =          $(DYNLIB)
  43 
  44 ROOTLIBDIR =    $(USR_LIB_PLUGINDIR)
  45 ROOTETC =       $(ROOT)/etc
  46 ROOTLIB =       $(ROOT)/usr/lib
  47 
  48 CLEANFILES=     $(LINTOUT) $(LINTLIB)
  49 CLOBBERFILES += $(LIBLINKS)
  50 
  51 CPPFLAGS +=     -I$(SRC)/lib/libsysevent -I$(SRC)/uts/common
  52 
  53 CFLAGS +=       $(CCVERBOSE) $(C_PICFLAGS)
  54 CPPFLAGS +=     -D_REENTRANT
  55 LDLIBS +=       -L$(SRC)/lib/libsysevent -L$(SRC)/lib/libpicltree/$(MACH)
  56 LDLIBS +=       -lc -lkstat -ldevinfo -lpicltree -lnvpair
  57 LDLIBS +=       -L../piclevent -L$(ROOT)/usr/lib/picl/plugins -lpiclevent
  58 LDLIBS +=       -R/usr/platform/\$$PLATFORM/lib/picl/plugins
  59 $(SPARC_BLD)LDLIBS +=   -R/usr/platform/sun4u/lib/picl/plugins
  60 LDLIBS +=       -R/usr/lib/picl/plugins
  61 
  62 LINTFLAGS +=    -L$(SRC)/lib/libpicltree/$(MACH) -lpicltree
  63 
  64 .KEEP_STATE:
  65 
  66 SUBDIRS=
  67 
  68 POFILE= picldevtree.po
  69 
  70 all :=          TARGET= all
  71 install :=      TARGET= install
  72 clean :=        TARGET= clean
  73 clobber :=      TARGET= clobber
  74 lint :=         TARGET= lint
  75 _msg :=         TARGET= _msg
  76 
  77 all: $(LIBS) $(LIBLINKS)
  78 
  79 install:        $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) 
  80 
  81 _msg:   $(MSGDOMAIN) $(POFILE)
  82         $(RM) $(MSGDOMAIN)/$(POFILE)
  83         $(CP) $(POFILE) $(MSGDOMAIN)
  84 
  85 
  86 $(MSGDOMAIN):
  87         $(INS.dir)
  88 
  89 $(LIBLINKS):    FRC
  90         $(RM) $@; $(SYMLINK) $(DYNLIB) $@
  91 
  92 # include library targets
  93 include $(SRC)/cmd/picl/plugins/Makefile.targ
  94 include $(SRC)/lib/Makefile.targ
  95 
  96 lint :
  97         $(LINT.c) $(SRCS)
  98 
  99 %.so: %.o
 100         $(LINK.c) -o $@ $(GSHARED) -h $@ $< $(LDLIBS)
 101 
 102 %.o: %.c
 103         $(COMPILE.c) -o $@ $<
 104 
 105 $(SUBDIRS): FRC
 106         @cd $@; pwd; $(MAKE) $(TARGET)
 107 
 108 FRC: