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


  24 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  25 # Use is subject to license terms.
  26 #
  27 
  28 include ../../../Makefile.cmd
  29 
  30 SHAREMGR64= $(POUND_SIGN)
  31 $(SHAREMGR64)SHAREMGRNO64= $(POUND_SIGN)
  32 
  33 PROG=           sharemgr
  34 
  35 OBJS    = sharemgr_main.o commands.o shareutil.o
  36 SRCS    = $(OBJS:%.o=../%.c)
  37 
  38 MYCPPFLAGS = -I../../../../lib/libfsmgt/common \
  39         -I$(ADJUNCT_PROTO)/usr/include/libxml2 \
  40                 -I../..
  41 CPPFLAGS += $(MYCPPFLAGS)
  42 LDLIBS += -lshare -lscf -lsecdb -lumem
  43 all install := LDLIBS += -lxml2

  44 LINTFLAGS       += -u
  45 
  46 CERRWARN        += -_gcc=-Wno-uninitialized
  47 
  48 POFILES = $(SRCS:.c=.po)
  49 POFILE  = sharemgr.po
  50 
  51 LN_ISAEXEC= \
  52         $(RM) $(ROOTUSRSBINPROG); \
  53         $(LN) $(ISAEXEC) $(ROOTUSRSBINPROG)
  54 
  55 .KEEP_STATE:
  56 
  57 all: $(PROG)
  58 
  59 $(PROG): $(OBJS)
  60         $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
  61         $(POST_PROCESS)
  62 
  63 install: all


  24 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  25 # Use is subject to license terms.
  26 #
  27 
  28 include ../../../Makefile.cmd
  29 
  30 SHAREMGR64= $(POUND_SIGN)
  31 $(SHAREMGR64)SHAREMGRNO64= $(POUND_SIGN)
  32 
  33 PROG=           sharemgr
  34 
  35 OBJS    = sharemgr_main.o commands.o shareutil.o
  36 SRCS    = $(OBJS:%.o=../%.c)
  37 
  38 MYCPPFLAGS = -I../../../../lib/libfsmgt/common \
  39         -I$(ADJUNCT_PROTO)/usr/include/libxml2 \
  40                 -I../..
  41 CPPFLAGS += $(MYCPPFLAGS)
  42 LDLIBS += -lshare -lscf -lsecdb -lumem
  43 all install := LDLIBS += -lxml2
  44 all install := ADJUNCT_LIBS = libxml2.so
  45 LINTFLAGS       += -u
  46 
  47 CERRWARN        += -_gcc=-Wno-uninitialized
  48 
  49 POFILES = $(SRCS:.c=.po)
  50 POFILE  = sharemgr.po
  51 
  52 LN_ISAEXEC= \
  53         $(RM) $(ROOTUSRSBINPROG); \
  54         $(LN) $(ISAEXEC) $(ROOTUSRSBINPROG)
  55 
  56 .KEEP_STATE:
  57 
  58 all: $(PROG)
  59 
  60 $(PROG): $(OBJS)
  61         $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
  62         $(POST_PROCESS)
  63 
  64 install: all