Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build


  43 STORAGE_PROG =  $(STORAGE_METHOD_PROG) \
  44                 hal-storage-cleanup-mountpoint \
  45                 hal-storage-cleanup-all-mountpoints
  46 
  47 PROGSRCS =      $(PROG:%=%.c) $(STORAGE_PROG:%=%.c)
  48 
  49 
  50 STORAGE_OBJS =          $(STORAGE_PROG:%=%.o)
  51 STORAGE_SHAREDOBJS =    hal-storage-shared.o adt_data.o
  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 CSTD = $(CSTD_GNU99)
  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




  43 STORAGE_PROG =  $(STORAGE_METHOD_PROG) \
  44                 hal-storage-cleanup-mountpoint \
  45                 hal-storage-cleanup-all-mountpoints
  46 
  47 PROGSRCS =      $(PROG:%=%.c) $(STORAGE_PROG:%=%.c)
  48 
  49 
  50 STORAGE_OBJS =          $(STORAGE_PROG:%=%.o)
  51 STORAGE_SHAREDOBJS =    hal-storage-shared.o adt_data.o
  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 $(HAL_PROG) :=          ADJUNCT_LIBS = libdbus-1.so
  64 
  65 lshal :=                LDLIBS += -ldbus-glib-1 -lglib-2.0
  66 lshal :=                ADJUNCT_LIBS = libdbus-glib-1.so libdbus-1.so libglib-2.0.so
  67 
  68 $(HAL_LIB) :=   LDLIBS += -lc -ldbus-1 -lpolkit $(ZIGNORE) -lglib-2.0
  69 $(HAL_LIB) :=   ADJUNCT_LIBS = libdbus-1.so libglib-2.0.so
  70 
  71 $(STORAGE_PROG) :=      LDLIBS += -lc -ldbus-1 -lglib-2.0 -lhal -lhal-storage -lbsm
  72 $(STORAGE_PROG) :=      ADJUNCT_LIBS = libdbus-1.so libglib-2.0.so
  73 
  74 $(STORAGE_METHOD_PROG) := LDLIBS += -lpolkit
  75 
  76 CPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
  77 CPPFLAGS += -I$(ROOT)/usr/include/hal
  78 CPPFLAGS += -I$(ROOT)/usr/include/libpolkit
  79 CSTD = $(CSTD_GNU99)
  80 
  81 ROOTUSRSBINPROG =       $(HAL_PROG:%=$(ROOTUSRSBIN)/%) \
  82                         $(SCRIPT_BIN:%=$(ROOTUSRSBIN)/%)
  83 
  84 ROOTCMDDIR =            $(ROOTLIB_HAL)
  85 ROOTCMD =               $(STORAGE_PROG:%=$(ROOTCMDDIR)/%) \
  86                         $(HAL_LIB:%=$(ROOTCMDDIR)/%) \
  87                         $(SCRIPT_LIB:%=$(ROOTCMDDIR)/%)
  88 
  89 all :=          TARGET= all
  90 install :=      TARGET= install
  91 clean :=        TARGET= clean
  92 clobber :=      TARGET= clobber