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


  72 
  73 MYCPPFLAGS =    -I ../common -I$(ADJUNCT_PROTO)/usr/include/libxml2
  74 CPPFLAGS +=     $(MYCPPFLAGS)
  75 LDFLAGS +=      $(MAPOPTS)
  76 
  77 CERRWARN +=     -_gcc=-Wno-unused-label
  78 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  79 CERRWARN +=     -_gcc=-Wno-switch
  80 CERRWARN +=     -_gcc=-Wno-uninitialized
  81 CERRWARN +=     -_gcc=-Wno-unused-variable
  82 CERRWARN +=     -_gcc=-Wno-parentheses
  83 
  84 LFLAGS = -t
  85 YFLAGS = -d
  86 
  87 CLOBBERFILES += svccfg_lex.c svccfg_grammar.c svccfg_grammar.h \
  88     $(MYPROG:%=%-native)
  89 
  90 SVCCFG_EXTRA_LIBS = -lxml2 -lscf -ll -luutil -lumem -lmd5 -lnvpair
  91 $(NOT_NATIVE)SVCCFG_EXTRA_LIBS += -ltecla

  92 
  93 LIBSCF          = $(SRC)/lib/libscf
  94 LIBTECLA        = $(SRC)/lib/libtecla           # just for the header
  95 LIBUUTIL        = $(SRC)/lib/libuutil
  96 
  97 debug := COPTFLAG = -g
  98 
  99 lint := LINTFLAGS = -mux
 100 lint := SVCCFG_EXTRA_LIBS = -lscf -ll -luutil -lumem -lmd5 -lnvpair
 101 
 102 LDLIBS += $(SVCCFG_EXTRA_LIBS)
 103 
 104 $(NATIVE_BUILD)CC =     $(NATIVECC)
 105 $(NATIVE_BUILD)LD =     $(NATIVELD)
 106 $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS)
 107 $(NATIVE_BUILD)CPPFLAGS = \
 108         -DNATIVE_BUILD \
 109         $(MYCPPFLAGS) \
 110         -I$(LIBSCF)/inc \
 111         -I$(LIBTECLA) \
 112         -I$(LIBUUTIL)/common
 113 $(NATIVE_BUILD)LDFLAGS =

 114 $(NATIVE_BUILD)LDLIBS = \
 115         -L$(LIBUUTIL)/native -R $(LIBUUTIL)/native \
 116         -L$(LIBSCF)/native -R $(LIBSCF)/native \
 117         -L$(ADJUNCT_PROTO)/usr/lib -R$(ADJUNCT_PROTO)/usr/lib \
 118         $(SVCCFG_EXTRA_LIBS)
 119 
 120 svccfg_lex.o svccfg_grammar.o := CCVERBOSE =
 121 
 122 svccfg_help.po := XGETFLAGS =   -a
 123 
 124 .KEEP_STATE:
 125 .PARALLEL: $(OBJS) $(LNTS)
 126 
 127 all debug: $(PROG)
 128 
 129 native: FRC
 130         @cd $(LIBUUTIL)/native; pwd; $(MAKE) $(MFLAGS) install
 131         @cd $(LIBSCF)/native; pwd; $(MAKE) $(MFLAGS) install
 132         @NATIVE_BUILD= $(MAKE) $(MFLAGS) all
 133 




  72 
  73 MYCPPFLAGS =    -I ../common -I$(ADJUNCT_PROTO)/usr/include/libxml2
  74 CPPFLAGS +=     $(MYCPPFLAGS)
  75 LDFLAGS +=      $(MAPOPTS)
  76 
  77 CERRWARN +=     -_gcc=-Wno-unused-label
  78 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  79 CERRWARN +=     -_gcc=-Wno-switch
  80 CERRWARN +=     -_gcc=-Wno-uninitialized
  81 CERRWARN +=     -_gcc=-Wno-unused-variable
  82 CERRWARN +=     -_gcc=-Wno-parentheses
  83 
  84 LFLAGS = -t
  85 YFLAGS = -d
  86 
  87 CLOBBERFILES += svccfg_lex.c svccfg_grammar.c svccfg_grammar.h \
  88     $(MYPROG:%=%-native)
  89 
  90 SVCCFG_EXTRA_LIBS = -lxml2 -lscf -ll -luutil -lumem -lmd5 -lnvpair
  91 $(NOT_NATIVE)SVCCFG_EXTRA_LIBS += -ltecla
  92 $(NOT_NATIVE)ADJUNCT_LIBS += libxml2.so
  93 
  94 LIBSCF          = $(SRC)/lib/libscf
  95 LIBTECLA        = $(SRC)/lib/libtecla           # just for the header
  96 LIBUUTIL        = $(SRC)/lib/libuutil
  97 
  98 debug := COPTFLAG = -g
  99 
 100 lint := LINTFLAGS = -mux
 101 lint := SVCCFG_EXTRA_LIBS = -lscf -ll -luutil -lumem -lmd5 -lnvpair
 102 
 103 LDLIBS += $(SVCCFG_EXTRA_LIBS)
 104 
 105 $(NATIVE_BUILD)CC =     $(NATIVECC)
 106 $(NATIVE_BUILD)LD =     $(NATIVELD)
 107 $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS)
 108 $(NATIVE_BUILD)CPPFLAGS = \
 109         -DNATIVE_BUILD \
 110         $(MYCPPFLAGS) \
 111         -I$(LIBSCF)/inc \
 112         -I$(LIBTECLA) \
 113         -I$(LIBUUTIL)/common
 114 $(NATIVE_BUILD)LDFLAGS =        -Bdirect
 115 $(NATIVE_BUILD)NATIVE_LIBS = libxml2.so libl.so libumem.so libmd5.so libnvpair.so libc.so
 116 $(NATIVE_BUILD)LDLIBS = \
 117         -L$(LIBUUTIL)/native -R $(LIBUUTIL)/native \
 118         -L$(LIBSCF)/native -R $(LIBSCF)/native \
 119         -L$(ADJUNCT_PROTO)/usr/lib -R$(ADJUNCT_PROTO)/usr/lib \
 120         $(SVCCFG_EXTRA_LIBS)
 121 
 122 svccfg_lex.o svccfg_grammar.o := CCVERBOSE =
 123 
 124 svccfg_help.po := XGETFLAGS =   -a
 125 
 126 .KEEP_STATE:
 127 .PARALLEL: $(OBJS) $(LNTS)
 128 
 129 all debug: $(PROG)
 130 
 131 native: FRC
 132         @cd $(LIBUUTIL)/native; pwd; $(MAKE) $(MFLAGS) install
 133         @cd $(LIBSCF)/native; pwd; $(MAKE) $(MFLAGS) install
 134         @NATIVE_BUILD= $(MAKE) $(MFLAGS) all
 135