Annotation of embedaddon/libiconv/Makefile.devel, revision 1.1
1.1 ! misho 1: # -*- makefile -*-
! 2: # This is the developer's makefile, not the user's makefile.
! 3: # Don't use it unless you know exactly what you do!
! 4:
! 5: SHELL = /bin/sh
! 6: MAKE = make
! 7: AUTOCONF = autoconf-2.63
! 8: AUTOHEADER = autoheader-2.63
! 9: AUTOMAKE = automake-1.11
! 10: ACLOCAL = aclocal-1.11
! 11: GPERF = gperf
! 12: CC = gcc
! 13: CFLAGS = -O
! 14: MAN2HTML = groff -mandoc -Thtml
! 15: CP = cp
! 16: RM = rm -f
! 17:
! 18:
! 19: all : configures config.h.in \
! 20: srclib/Makefile.gnulib srclib/Makefile.in \
! 21: include/iconv.h.build.in \
! 22: lib/aliases.h lib/aliases_sysaix.h lib/aliases_syshpux.h lib/aliases_sysosf1.h lib/aliases_syssolaris.h \
! 23: lib/aliases_aix.h lib/aliases_aix_sysaix.h \
! 24: lib/aliases_osf1.h lib/aliases_osf1_sysosf1.h \
! 25: lib/aliases_dos.h \
! 26: lib/aliases_extra.h \
! 27: lib/flags.h lib/translit.h \
! 28: man/iconv.1.html man/iconv.3.html man/iconv_close.3.html man/iconv_open.3.html force
! 29: cd libcharset && $(MAKE) -f Makefile.devel all
! 30: cd preload && $(MAKE) -f Makefile.devel all
! 31:
! 32:
! 33: # Before making a new release:
! 34: # - check that the encoding lists in README and man/iconv_open.3 are up to date,
! 35: # - increment the version number in
! 36: # include/iconv.h.in
! 37: # README
! 38: # djgpp/README
! 39: # djgpp/fnchange.lst
! 40: # libcharset/djgpp/README
! 41: # libcharset/djgpp/fnchange.lst
! 42: # - update the version info in lib/Makefile.in,
! 43: # - do "make -f Makefile.devel".
! 44:
! 45:
! 46: CONFIGURES = configure
! 47: CONFIGURES_IN = configure.ac
! 48:
! 49: aclocal.m4 : $(CONFIGURES_IN) srclib/Makefile.gnulib $(wildcard m4/*.m4) $(wildcard srcm4/*.m4)
! 50: $(ACLOCAL) -I m4 -I srcm4 --output=$@ && touch $@
! 51:
! 52: configures : $(CONFIGURES)
! 53:
! 54: AUTOCONF_FILES = aclocal.m4 $(wildcard m4/*.m4) $(wildcard srcm4/*.m4)
! 55:
! 56: configure : configure.ac $(AUTOCONF_FILES)
! 57: $(AUTOCONF)
! 58:
! 59: check-configures : $(CONFIGURES)
! 60: set -e; for f in $(CONFIGURES); do bash -x -n $$f; done
! 61:
! 62: config.h.in : configure.ac $(AUTOCONF_FILES)
! 63: $(AUTOHEADER)
! 64: touch $@
! 65:
! 66:
! 67: GNULIB_MODULES = \
! 68: binary-io \
! 69: error \
! 70: exit \
! 71: gettext \
! 72: gettext-h \
! 73: mbstate \
! 74: memmove \
! 75: progname \
! 76: relocatable-prog \
! 77: sigpipe \
! 78: stdio \
! 79: strerror \
! 80: unistd \
! 81: uniwidth/width \
! 82: unlocked-io \
! 83: xalloc \
! 84: libiconv-misc
! 85:
! 86: srclib/Makefile.gnulib :
! 87: if test -n "$$GNULIB_TOOL"; then \
! 88: $$GNULIB_TOOL --lib=libicrt --source-base=srclib --m4-base=srcm4 --makefile-name=Makefile.gnulib --no-libtool --local-dir=gnulib-local \
! 89: --import $(GNULIB_MODULES); \
! 90: fi
! 91:
! 92: srclib/Makefile.in : srclib/Makefile.am srclib/Makefile.gnulib
! 93: touch build-aux/compile \
! 94: && $(AUTOMAKE) --gnits srclib/Makefile \
! 95: && rm -f build-aux/compile
! 96:
! 97:
! 98: include/iconv.h.build.in : include/iconv.h.in include/export.h
! 99: sed -e 's/extern \([^"]\)/extern LIBICONV_DLL_EXPORTED \1/' \
! 100: -e '/_LIBICONV_VERSION/r include/export.h' \
! 101: < $< > $@
! 102:
! 103:
! 104: lib/aliases.h lib/canonical.h lib/canonical_local.h : lib/encodings.def lib/encodings_local.def lib/genaliases.c
! 105: $(CC) $(CFLAGS) lib/genaliases.c -o genaliases
! 106: ./genaliases > lib/aliases.gperf 3> canonical.sh 4> canonical_local.sh
! 107: $(RM) genaliases
! 108: $(GPERF) -m 10 lib/aliases.gperf > tmp.h
! 109: $(CP) tmp.h lib/aliases.h
! 110: sh canonical.sh > lib/canonical.h
! 111: sh canonical_local.sh > lib/canonical_local.h
! 112: $(RM) tmp.h canonical.sh canonical_local.sh
! 113:
! 114: lib/aliases_sysaix.h lib/canonical_sysaix.h lib/canonical_local_sysaix.h : lib/encodings.def lib/encodings_local.def lib/genaliases.c
! 115: $(CC) $(CFLAGS) -DUSE_AIX_ALIASES lib/genaliases.c -o genaliases
! 116: ./genaliases > lib/aliases_sysaix.gperf 3> canonical.sh 4> canonical_local.sh
! 117: $(RM) genaliases
! 118: $(GPERF) -m 10 lib/aliases_sysaix.gperf > tmp.h
! 119: $(CP) tmp.h lib/aliases_sysaix.h
! 120: sh canonical.sh > lib/canonical_sysaix.h
! 121: sh canonical_local.sh > lib/canonical_local_sysaix.h
! 122: $(RM) tmp.h canonical.sh canonical_local.sh
! 123:
! 124: lib/aliases_syshpux.h lib/canonical_syshpux.h lib/canonical_local_syshpux.h : lib/encodings.def lib/encodings_local.def lib/genaliases.c
! 125: $(CC) $(CFLAGS) -DUSE_HPUX_ALIASES lib/genaliases.c -o genaliases
! 126: ./genaliases > lib/aliases_syshpux.gperf 3> canonical.sh 4> canonical_local.sh
! 127: $(RM) genaliases
! 128: $(GPERF) -m 10 lib/aliases_syshpux.gperf > tmp.h
! 129: $(CP) tmp.h lib/aliases_syshpux.h
! 130: sh canonical.sh > lib/canonical_syshpux.h
! 131: sh canonical_local.sh > lib/canonical_local_syshpux.h
! 132: $(RM) tmp.h canonical.sh canonical_local.sh
! 133:
! 134: lib/aliases_sysosf1.h lib/canonical_sysosf1.h lib/canonical_local_sysosf1.h : lib/encodings.def lib/encodings_local.def lib/genaliases.c
! 135: $(CC) $(CFLAGS) -DUSE_OSF1_ALIASES lib/genaliases.c -o genaliases
! 136: ./genaliases > lib/aliases_sysosf1.gperf 3> canonical.sh 4> canonical_local.sh
! 137: $(RM) genaliases
! 138: $(GPERF) -m 10 lib/aliases_sysosf1.gperf > tmp.h
! 139: $(CP) tmp.h lib/aliases_sysosf1.h
! 140: sh canonical.sh > lib/canonical_sysosf1.h
! 141: sh canonical_local.sh > lib/canonical_local_sysosf1.h
! 142: $(RM) tmp.h canonical.sh canonical_local.sh
! 143:
! 144: lib/aliases_syssolaris.h lib/canonical_syssolaris.h lib/canonical_local_syssolaris.h : lib/encodings.def lib/encodings_local.def lib/genaliases.c
! 145: $(CC) $(CFLAGS) -DUSE_SOLARIS_ALIASES lib/genaliases.c -o genaliases
! 146: ./genaliases > lib/aliases_syssolaris.gperf 3> canonical.sh 4> canonical_local.sh
! 147: $(RM) genaliases
! 148: $(GPERF) -m 10 lib/aliases_syssolaris.gperf > tmp.h
! 149: $(CP) tmp.h lib/aliases_syssolaris.h
! 150: sh canonical.sh > lib/canonical_syssolaris.h
! 151: sh canonical_local.sh > lib/canonical_local_syssolaris.h
! 152: $(RM) tmp.h canonical.sh canonical_local.sh
! 153:
! 154: lib/aliases_aix.h lib/canonical_aix.h : lib/encodings_aix.def lib/genaliases2.c
! 155: $(CC) $(CFLAGS) -DUSE_AIX lib/genaliases2.c -o genaliases
! 156: ./genaliases aix > lib/aliases_aix.h 3> lib/canonical_aix.h
! 157: $(RM) genaliases
! 158:
! 159: lib/aliases_aix_sysaix.h lib/canonical_aix_sysaix.h : lib/encodings_aix.def lib/genaliases2.c
! 160: $(CC) $(CFLAGS) -DUSE_AIX -DUSE_AIX_ALIASES lib/genaliases2.c -o genaliases
! 161: ./genaliases aix > lib/aliases_aix_sysaix.h 3> lib/canonical_aix_sysaix.h
! 162: $(RM) genaliases
! 163:
! 164: lib/aliases_osf1.h lib/canonical_osf1.h : lib/encodings_osf1.def lib/genaliases2.c
! 165: $(CC) $(CFLAGS) -DUSE_OSF1 lib/genaliases2.c -o genaliases
! 166: ./genaliases osf1 > lib/aliases_osf1.h 3> lib/canonical_osf1.h
! 167: $(RM) genaliases
! 168:
! 169: lib/aliases_osf1_sysosf1.h lib/canonical_osf1_sysosf1.h : lib/encodings_osf1.def lib/genaliases2.c
! 170: $(CC) $(CFLAGS) -DUSE_OSF1 -DUSE_OSF1_ALIASES lib/genaliases2.c -o genaliases
! 171: ./genaliases osf1 > lib/aliases_osf1_sysosf1.h 3> lib/canonical_osf1_sysosf1.h
! 172: $(RM) genaliases
! 173:
! 174: lib/aliases_dos.h lib/canonical_dos.h : lib/encodings_dos.def lib/genaliases2.c
! 175: $(CC) $(CFLAGS) -DUSE_DOS lib/genaliases2.c -o genaliases
! 176: ./genaliases dos > lib/aliases_dos.h 3> lib/canonical_dos.h
! 177: $(RM) genaliases
! 178:
! 179: lib/aliases_extra.h lib/canonical_extra.h : lib/encodings_extra.def lib/genaliases2.c
! 180: $(CC) $(CFLAGS) -DUSE_EXTRA lib/genaliases2.c -o genaliases
! 181: ./genaliases extra > lib/aliases_extra.h 3> lib/canonical_extra.h
! 182: $(RM) genaliases
! 183:
! 184:
! 185: lib/flags.h : lib/encodings.def lib/encodings_aix.def lib/encodings_osf1.def lib/encodings_dos.def lib/encodings_extra.def lib/converters.h lib/genflags.c
! 186: $(CC) $(CFLAGS) lib/genflags.c -o genflags
! 187: ./genflags > lib/flags.h
! 188: $(RM) genflags
! 189:
! 190:
! 191: lib/translit.h : lib/translit.def lib/gentranslit.c
! 192: $(CC) $(CFLAGS) lib/gentranslit.c -o gentranslit
! 193: ulimit -s unlimited; ./gentranslit < lib/translit.def > lib/translit.h
! 194: $(RM) gentranslit
! 195:
! 196:
! 197: man/%.html : man/%
! 198: $(MAN2HTML) $< > $@
! 199:
! 200:
! 201: force :
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>