Print this page
8411 Build should warn when linking against libraries outside proto area


   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 2008 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #


  25 
  26 SUBDIR =        sunos   
  27 
  28 HAL_PROG =      hal-device hal-find-by-capability hal-find-by-property \
  29                 hal-get-property hal-set-property lshal
  30 
  31 HAL_LIB =       hal-is-caller-privileged
  32 
  33 SCRIPT_BIN =    hal-fdi-validate
  34 
  35 SCRIPT_LIB =    hal-system-lcd-set-brightness  hal-system-lcd-get-brightness \
  36                 hal-system-power-hibernate hal-system-power-suspend \
  37                 hal-system-power-reboot hal-system-power-shutdown hal-functions
  38 
  39 STORAGE_METHOD_PROG = hal-storage-closetray hal-storage-eject \
  40                 hal-storage-mount hal-storage-unmount \
  41                 hal-storage-zpool-export hal-storage-zpool-import
  42 
  43 STORAGE_PROG =  $(STORAGE_METHOD_PROG) \
  44                 hal-storage-cleanup-mountpoint \


  52 STORAGE_SHAREDSRCS =    $(STORAGE_SHAREDOBJS:%.o=%.c) $(STORAGE_SHAREDOBJS:%.o=../utils/%.c)
  53 
  54 SRCS =          $(PROGSRCS) $(STORAGE_SHAREDSRCS)
  55 
  56 CLOBBERFILES += $(HAL_PROG) $(STORAGE_PROG) $(SCRIPT_BIN) $(SCRIPT_LIB) $(HAL_LIB)
  57 CLEANFILES += $(STORAGE_SHAREDOBJS) $(STORAGE_OBJS) hal-storage-zpool.o
  58 
  59 include ../../Makefile.cmd
  60 include ../Makefile.hal
  61 
  62 $(HAL_PROG) :=          LDLIBS += -lc -ldbus-1 -lhal
  63 
  64 lshal :=                LDLIBS += -ldbus-glib-1 -lglib-2.0
  65 
  66 $(HAL_LIB) :=   LDLIBS += -lc -ldbus-1 -lpolkit $(ZIGNORE) -lglib-2.0
  67 
  68 $(STORAGE_PROG) :=      LDLIBS += -lc -ldbus-1 -lglib-2.0 -lhal -lhal-storage -lbsm
  69 
  70 $(STORAGE_METHOD_PROG) := LDLIBS += -lpolkit
  71 





  72 CPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
  73 CPPFLAGS += -I$(ROOT)/usr/include/hal
  74 CPPFLAGS += -I$(ROOT)/usr/include/libpolkit
  75 C99MODE = $(C99_ENABLE)
  76 
  77 ROOTUSRSBINPROG =       $(HAL_PROG:%=$(ROOTUSRSBIN)/%) \
  78                         $(SCRIPT_BIN:%=$(ROOTUSRSBIN)/%)
  79 
  80 ROOTCMDDIR =            $(ROOTLIB_HAL)
  81 ROOTCMD =               $(STORAGE_PROG:%=$(ROOTCMDDIR)/%) \
  82                         $(HAL_LIB:%=$(ROOTCMDDIR)/%) \
  83                         $(SCRIPT_LIB:%=$(ROOTCMDDIR)/%)
  84 
  85 all :=          TARGET= all
  86 install :=      TARGET= install
  87 clean :=        TARGET= clean
  88 clobber :=      TARGET= clobber
  89 
  90 .KEEP_STATE:
  91 




   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 2008 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright 2017 RackTop Systems.
  26 #
  27 
  28 SUBDIR =        sunos   
  29 
  30 HAL_PROG =      hal-device hal-find-by-capability hal-find-by-property \
  31                 hal-get-property hal-set-property lshal
  32 
  33 HAL_LIB =       hal-is-caller-privileged
  34 
  35 SCRIPT_BIN =    hal-fdi-validate
  36 
  37 SCRIPT_LIB =    hal-system-lcd-set-brightness  hal-system-lcd-get-brightness \
  38                 hal-system-power-hibernate hal-system-power-suspend \
  39                 hal-system-power-reboot hal-system-power-shutdown hal-functions
  40 
  41 STORAGE_METHOD_PROG = hal-storage-closetray hal-storage-eject \
  42                 hal-storage-mount hal-storage-unmount \
  43                 hal-storage-zpool-export hal-storage-zpool-import
  44 
  45 STORAGE_PROG =  $(STORAGE_METHOD_PROG) \
  46                 hal-storage-cleanup-mountpoint \


  54 STORAGE_SHAREDSRCS =    $(STORAGE_SHAREDOBJS:%.o=%.c) $(STORAGE_SHAREDOBJS:%.o=../utils/%.c)
  55 
  56 SRCS =          $(PROGSRCS) $(STORAGE_SHAREDSRCS)
  57 
  58 CLOBBERFILES += $(HAL_PROG) $(STORAGE_PROG) $(SCRIPT_BIN) $(SCRIPT_LIB) $(HAL_LIB)
  59 CLEANFILES += $(STORAGE_SHAREDOBJS) $(STORAGE_OBJS) hal-storage-zpool.o
  60 
  61 include ../../Makefile.cmd
  62 include ../Makefile.hal
  63 
  64 $(HAL_PROG) :=          LDLIBS += -lc -ldbus-1 -lhal
  65 
  66 lshal :=                LDLIBS += -ldbus-glib-1 -lglib-2.0
  67 
  68 $(HAL_LIB) :=   LDLIBS += -lc -ldbus-1 -lpolkit $(ZIGNORE) -lglib-2.0
  69 
  70 $(STORAGE_PROG) :=      LDLIBS += -lc -ldbus-1 -lglib-2.0 -lhal -lhal-storage -lbsm
  71 
  72 $(STORAGE_METHOD_PROG) := LDLIBS += -lpolkit
  73 
  74 # Allow HAL to take some of its dependencies from outside the proto area.
  75 $(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libdbus-1.so
  76 $(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libdbus-glib-1.so
  77 $(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libglib-2.0.so
  78 
  79 CPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
  80 CPPFLAGS += -I$(ROOT)/usr/include/hal
  81 CPPFLAGS += -I$(ROOT)/usr/include/libpolkit
  82 C99MODE = $(C99_ENABLE)
  83 
  84 ROOTUSRSBINPROG =       $(HAL_PROG:%=$(ROOTUSRSBIN)/%) \
  85                         $(SCRIPT_BIN:%=$(ROOTUSRSBIN)/%)
  86 
  87 ROOTCMDDIR =            $(ROOTLIB_HAL)
  88 ROOTCMD =               $(STORAGE_PROG:%=$(ROOTCMDDIR)/%) \
  89                         $(HAL_LIB:%=$(ROOTCMDDIR)/%) \
  90                         $(SCRIPT_LIB:%=$(ROOTCMDDIR)/%)
  91 
  92 all :=          TARGET= all
  93 install :=      TARGET= install
  94 clean :=        TARGET= clean
  95 clobber :=      TARGET= clobber
  96 
  97 .KEEP_STATE:
  98