Print this page
10079 smatch Makefile changes for usr/src/lib


   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #

  25 
  26 include $(SRC)/Makefile.master
  27 
  28 BTS_DIR                 = $(ROOT)/usr/lib/iconv/geniconvtbl/binarytables
  29 
  30 # geniconvtbl loadmodule
  31 GENICONVTBL= /usr/bin/geniconvtbl
  32 #
  33 # Common sources come from following directory:
  34 COMMON                  = ../common/
  35 GENI_SRCS               = ../common/binarytables/srcs
  36 
  37 include $(SRC)/lib/iconv_modules/Makefile.iconv
  38 include $(SRC)/lib/iconv_modules/utf-8/Makefile.iconv
  39 
  40 CLEANFILES =    *.o *.so core *.bt
  41 
  42 .NO_PARALLEL:
  43 
  44 .PARALLEL: $(DYNOBJS) $(BINARYTABLES)


  58                 TMP=`echo $$f | $(TR) "+" "%"` ; \
  59                 echo installing $$TMP to $(ICONV_DIR) ; \
  60                 $(RM) $(ICONV_DIR)/$$TMP ; \
  61                 $(CP) $$f $(ICONV_DIR)/$$TMP ; \
  62                 $(CHMOD) 755 $(ICONV_DIR)/$$TMP ; \
  63         done
  64         -@echo "done."
  65 
  66 
  67 $(BTS_DIR):
  68         $(INS.dir) $@
  69 
  70 clobber: clean
  71 
  72 $(ICONV_DIR)/alias:=    FILEMODE=0444
  73 
  74 LDLIBS                  = -lc
  75 
  76 LDFLAGS = $(DYNFLAGS) $(LDLIBS) $(CFLAG_OPT)
  77 



  78 $(DYNOBJS)              := CFLAGS += $(XREGSFLAG) $(C_PICFLAGS) -D_REENTRANT \
  79                                         -I$(COMMON) -I$(COMMON)/tbls \
  80                                         -I$(ADJUNCT_PROTO)/usr/include
  81 
  82 $(UCS_2_SOS)            := CFLAGS += -DUCS_2
  83 $(UCS_2BE_SOS)          := CFLAGS += -DUCS_2BE
  84 $(UCS_2LE_SOS)          := CFLAGS += -DUCS_2LE
  85 
  86 $(UTF_16_SOS)           := CFLAGS += -DUTF_16
  87 $(UTF_16BE_SOS)         := CFLAGS += -DUTF_16BE
  88 $(UTF_16LE_SOS)         := CFLAGS += -DUTF_16LE
  89 
  90 $(UTF_32_SOS)           := CFLAGS += -DUTF_32
  91 $(UTF_32BE_SOS)         := CFLAGS += -DUTF_32BE
  92 $(UTF_32LE_SOS)         := CFLAGS += -DUTF_32LE
  93 
  94 $(UCS_4_SOS)            := CFLAGS += -DUCS_4
  95 $(UCS_4BE_SOS)          := CFLAGS += -DUCS_4BE
  96 $(UCS_4LE_SOS)          := CFLAGS += -DUCS_4LE
  97 




   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 include $(SRC)/Makefile.master
  28 
  29 BTS_DIR                 = $(ROOT)/usr/lib/iconv/geniconvtbl/binarytables
  30 
  31 # geniconvtbl loadmodule
  32 GENICONVTBL= /usr/bin/geniconvtbl
  33 #
  34 # Common sources come from following directory:
  35 COMMON                  = ../common/
  36 GENI_SRCS               = ../common/binarytables/srcs
  37 
  38 include $(SRC)/lib/iconv_modules/Makefile.iconv
  39 include $(SRC)/lib/iconv_modules/utf-8/Makefile.iconv
  40 
  41 CLEANFILES =    *.o *.so core *.bt
  42 
  43 .NO_PARALLEL:
  44 
  45 .PARALLEL: $(DYNOBJS) $(BINARYTABLES)


  59                 TMP=`echo $$f | $(TR) "+" "%"` ; \
  60                 echo installing $$TMP to $(ICONV_DIR) ; \
  61                 $(RM) $(ICONV_DIR)/$$TMP ; \
  62                 $(CP) $$f $(ICONV_DIR)/$$TMP ; \
  63                 $(CHMOD) 755 $(ICONV_DIR)/$$TMP ; \
  64         done
  65         -@echo "done."
  66 
  67 
  68 $(BTS_DIR):
  69         $(INS.dir) $@
  70 
  71 clobber: clean
  72 
  73 $(ICONV_DIR)/alias:=    FILEMODE=0444
  74 
  75 LDLIBS                  = -lc
  76 
  77 LDFLAGS = $(DYNFLAGS) $(LDLIBS) $(CFLAG_OPT)
  78 
  79 # needs work
  80 SMATCH=off
  81 
  82 $(DYNOBJS)              := CFLAGS += $(XREGSFLAG) $(C_PICFLAGS) -D_REENTRANT \
  83                                         -I$(COMMON) -I$(COMMON)/tbls \
  84                                         -I$(ADJUNCT_PROTO)/usr/include
  85 
  86 $(UCS_2_SOS)            := CFLAGS += -DUCS_2
  87 $(UCS_2BE_SOS)          := CFLAGS += -DUCS_2BE
  88 $(UCS_2LE_SOS)          := CFLAGS += -DUCS_2LE
  89 
  90 $(UTF_16_SOS)           := CFLAGS += -DUTF_16
  91 $(UTF_16BE_SOS)         := CFLAGS += -DUTF_16BE
  92 $(UTF_16LE_SOS)         := CFLAGS += -DUTF_16LE
  93 
  94 $(UTF_32_SOS)           := CFLAGS += -DUTF_32
  95 $(UTF_32BE_SOS)         := CFLAGS += -DUTF_32BE
  96 $(UTF_32LE_SOS)         := CFLAGS += -DUTF_32LE
  97 
  98 $(UCS_4_SOS)            := CFLAGS += -DUCS_4
  99 $(UCS_4BE_SOS)          := CFLAGS += -DUCS_4BE
 100 $(UCS_4LE_SOS)          := CFLAGS += -DUCS_4LE
 101