Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized


  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
  64 
  65 $(SHAREMGRNO64)install: $(ROOTUSRSBINPROG)
  66 


  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        += $(CNOWARN_UNINIT)
  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
  64 
  65 $(SHAREMGRNO64)install: $(ROOTUSRSBINPROG)
  66