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


  53 
  54 CFLAGS          +=      $(CCVERBOSE)
  55 CPPFLAGS        += -I./ -I$(ADJUNCT_PROTO)/usr/include/libxml2
  56 CPPFLAGS        += -DTARGET_DATA_STORE=$(DATA_STORE)
  57 CPPFLAGS        += -D_POSIX_PTHREAD_SEMANTICS
  58 LINTFLAGS += -xerroff=E_BAD_PTR_CAST_ALIGN
  59 LINTFLAGS += -xerroff=E_NAME_USED_NOT_DEF2
  60 LINTFLAGS += -xerroff=E_CASE_FALLTHRU
  61 
  62 CERRWARN += -_gcc=-Wno-char-subscripts
  63 CERRWARN += -_gcc=-Wno-ignored-qualifiers
  64 CERRWARN += -_gcc=-Wno-uninitialized
  65 CERRWARN += -_gcc=-Wno-implicit-function-declaration
  66 
  67 CLOBBERFILES += $(DTRACE_HEADER)
  68 
  69 obj.o := CERRWARN += -erroff=E_CONST_OBJ_SHOULD_HAVE_INITIZR
  70 obj.o := CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
  71 
  72 LDLIBS          += -lsecdb -lsocket -lnsl -lscf -lxml2

  73 
  74 .KEEP_STATE:
  75 
  76 all:    $(PROG)
  77 
  78 $(PROG): $(OBJS)
  79         $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  80         $(POST_PROCESS)
  81 
  82 %.h: %.d
  83         $(DTRACE) -h -s $< -o $@
  84 
  85 %.o:    %.c $(DTRACE_HEADER)
  86         $(COMPILE.c) $<
  87         $(POST_PROCESS_O)
  88 
  89 %.o:    %.d $(COBJS)
  90         $(COMPILE.d) -s $< $(COBJS)
  91         $(POST_PROCESS_O)
  92 


  53 
  54 CFLAGS          +=      $(CCVERBOSE)
  55 CPPFLAGS        += -I./ -I$(ADJUNCT_PROTO)/usr/include/libxml2
  56 CPPFLAGS        += -DTARGET_DATA_STORE=$(DATA_STORE)
  57 CPPFLAGS        += -D_POSIX_PTHREAD_SEMANTICS
  58 LINTFLAGS += -xerroff=E_BAD_PTR_CAST_ALIGN
  59 LINTFLAGS += -xerroff=E_NAME_USED_NOT_DEF2
  60 LINTFLAGS += -xerroff=E_CASE_FALLTHRU
  61 
  62 CERRWARN += -_gcc=-Wno-char-subscripts
  63 CERRWARN += -_gcc=-Wno-ignored-qualifiers
  64 CERRWARN += -_gcc=-Wno-uninitialized
  65 CERRWARN += -_gcc=-Wno-implicit-function-declaration
  66 
  67 CLOBBERFILES += $(DTRACE_HEADER)
  68 
  69 obj.o := CERRWARN += -erroff=E_CONST_OBJ_SHOULD_HAVE_INITIZR
  70 obj.o := CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
  71 
  72 LDLIBS          += -lsecdb -lsocket -lnsl -lscf -lxml2
  73 ADJUNCT_LIBS    = libxml2.so
  74 
  75 .KEEP_STATE:
  76 
  77 all:    $(PROG)
  78 
  79 $(PROG): $(OBJS)
  80         $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  81         $(POST_PROCESS)
  82 
  83 %.h: %.d
  84         $(DTRACE) -h -s $< -o $@
  85 
  86 %.o:    %.c $(DTRACE_HEADER)
  87         $(COMPILE.c) $<
  88         $(POST_PROCESS_O)
  89 
  90 %.o:    %.d $(COBJS)
  91         $(COMPILE.d) -s $< $(COBJS)
  92         $(POST_PROCESS_O)
  93