Print this page
11394 iconv_modules build could be much more parallel


  27 
  28 # let the .so compilation be driven by present recoding tables
  29 TABLES:sh =     cd ../tbls/ && ls *tbl
  30 
  31 ALL_SOS:sh =    (cd ../tbls/ && ls *tbl |sed -e s:_:%:g -e 's:\.tbl$:.so:g')
  32 
  33 LDLIBS          = -lc
  34 
  35 LINK_TARGETS =  646%8859-1.so
  36 
  37 .NO_PARALLEL:
  38 
  39 .PARALLEL: $(ALL_SOS)
  40 
  41 all: $(ALL_SOS)
  42 
  43 include $(SRC)/lib/iconv_modules/Makefile.iconv
  44 
  45 LDFLAGS = $(DYNFLAGS) $(LDLIBS)
  46 
  47 CFLAGS          += $(INCLUDES) $(XREGSFLAG) -D_REENTRANT
  48 
  49 CLEANFILES +=   core ../common/tbl.h
  50 
  51 $(ALL_SOS): ../common/euro.h ../common/euro.c ../common/tbl.h
  52         TABLE=`echo $@ | $(TR) -d "-" | sed -e s:%:_:g | /usr/bin/cut -d. -f1` ; \
  53         $(CC) $(CFLAGS) -DT_$$TABLE ../common/euro.c -c -o $@.o ; \
  54         $(LD) $(LDFLAGS) -o $@ $@.o $(LDLIBS)
  55         $(POST_PROCESS_SO)
  56 
  57 ../common/tbl.h: ../genincl $(TABLES:%=../tbls/%)
  58         cd ..; ./genincl > common/tbl.h
  59 
  60 $(CREATE_LINKS):  $(ICONV_LINK_TARGETS)
  61         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-15.so
  62         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-2.so
  63         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-4.so
  64         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-5.so
  65         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-6.so
  66         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-7.so
  67         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-8.so
  68         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-9.so
  69         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%CP1251.so
  70         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%KOI8-R.so
  71         $(TOUCH) $@
  72 
  73 FRC:


  27 
  28 # let the .so compilation be driven by present recoding tables
  29 TABLES:sh =     cd ../tbls/ && ls *tbl
  30 
  31 ALL_SOS:sh =    (cd ../tbls/ && ls *tbl |sed -e s:_:%:g -e 's:\.tbl$:.so:g')
  32 
  33 LDLIBS          = -lc
  34 
  35 LINK_TARGETS =  646%8859-1.so
  36 
  37 .NO_PARALLEL:
  38 
  39 .PARALLEL: $(ALL_SOS)
  40 
  41 all: $(ALL_SOS)
  42 
  43 include $(SRC)/lib/iconv_modules/Makefile.iconv
  44 
  45 LDFLAGS = $(DYNFLAGS) $(LDLIBS)
  46 
  47 CFLAGS          += $(XREGSFLAG) -D_REENTRANT
  48 
  49 CLEANFILES +=   tbl.h
  50 
  51 $(ALL_SOS): ../common/euro.h ../common/euro.c tbl.h
  52         TABLE=`echo $@ | $(TR) -d "-" | sed -e s:%:_:g | /usr/bin/cut -d. -f1` ; \
  53         $(CC) $(CFLAGS) $(CPPFLAGS) -DT_$$TABLE ../common/euro.c -c -o $@.o ; \
  54         $(LD) $(LDFLAGS) -o $@ $@.o $(LDLIBS)
  55         $(POST_PROCESS_SO)
  56 
  57 tbl.h: ../genincl $(TABLES:%=../tbls/%)
  58         (cd ..; ./genincl) > $@
  59 
  60 $(CREATE_LINKS):  $(ICONV_LINK_TARGETS)
  61         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-15.so
  62         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-2.so
  63         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-4.so
  64         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-5.so
  65         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-6.so
  66         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-7.so
  67         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-8.so
  68         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-9.so
  69         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%CP1251.so
  70         $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%KOI8-R.so
  71         $(TOUCH) $@
  72 
  73 FRC: