1 #!/bin/sh 2 # 3 # Compilation script for the iconv names DFA builer. 4 # 5 # See Copyright for the status of this software. 6 # 7 # Author: Patrick Monnerat <pm (at] datasphere.ch>, DATASPHERE S.A. 8 # 9 10 SCRIPTDIR=`dirname "${0}"` 11 . "${SCRIPTDIR}/initscript.sh" 12 cd "${TOPDIR}/os400/iconv/bldcsndfa" 13 14 15 # This is for old XML library (bootstrapping). 16 #rm -rf xml.h xml 17 #ln -s /QSYS.LIB/XML.LIB/H.FILE/XML.MBR xml.h 18 #mkdir xml 19 #mkdir xml/h 20 #ln -s /QSYS.LIB/XML.LIB/H.FILE/UTF8.MBR xml/h/utf8 21 22 23 # Compile. 24 25 CMD="CRTCMOD MODULE(${TARGETLIB}/BLDCSNDFA) SRCSTMF('bldcsndfa.c')" 26 CMD="${CMD} SYSIFCOPT(*IFS64IO) LANGLVL(*EXTENDED) LOCALETYPE(*LOCALE)" 27 CMD="${CMD} INCDIR(" 28 CMD="${CMD} '${IFSDIR}/include' ${INCLUDES})" 29 CMD="${CMD} TGTCCSID(${TGTCCSID}) TGTRLS(${TGTRLS})" 30 CMD="${CMD} OUTPUT(${OUTPUT})" 31 CMD="${CMD} OPTIMIZE(10)" 32 CMD="${CMD} DBGVIEW(${DEBUG})" 33 #CMD="${CMD} DEFINE('OLDXML' 'xmlXPathSetContextNode=xmlXPathSetCurrentNode')" 34 35 system "${CMD}" 36 37 # Link 38 39 CMD="CRTPGM PGM(${TARGETLIB}/BLDCSNDFA) MODULE(${TARGETLIB}/BLDCSNDFA)" 40 CMD="${CMD} BNDDIR(${TARGETLIB}/${DYNBNDDIR})" 41 #CMD="${CMD} BNDDIR(XML/XML)" 42 CMD="${CMD} TGTRLS(${TGTRLS})" 43 system "${CMD}" 44