blob: 57cf0120774c9c92aff6d202cf3930840c3ccfe6 [file] [log] [blame]
Patrick Monnerate72b4e72014-03-04 17:26:13 +01001#!/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@datasphere.ch>, DATASPHERE S.A.
8#
9
10SCRIPTDIR=`dirname "${0}"`
11. "${SCRIPTDIR}/initscript.sh"
12cd "${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
25CMD="CRTCMOD MODULE(${TARGETLIB}/BLDCSNDFA) SRCSTMF('bldcsndfa.c')"
26CMD="${CMD} SYSIFCOPT(*IFS64IO) LANGLVL(*EXTENDED) LOCALETYPE(*LOCALE)"
27CMD="${CMD} INCDIR("
28CMD="${CMD} '${IFSDIR}/include' ${INCLUDES})"
29CMD="${CMD} TGTCCSID(${TGTCCSID}) TGTRLS(${TGTRLS})"
30CMD="${CMD} OUTPUT(${OUTPUT})"
31CMD="${CMD} OPTIMIZE(10)"
32CMD="${CMD} DBGVIEW(${DEBUG})"
33#CMD="${CMD} DEFINE('OLDXML' 'xmlXPathSetContextNode=xmlXPathSetCurrentNode')"
34
35system "${CMD}"
36
37# Link
38
39CMD="CRTPGM PGM(${TARGETLIB}/BLDCSNDFA) MODULE(${TARGETLIB}/BLDCSNDFA)"
40CMD="${CMD} BNDDIR(${TARGETLIB}/${DYNBNDDIR})"
41#CMD="${CMD} BNDDIR(XML/XML)"
42CMD="${CMD} TGTRLS(${TGTRLS})"
43system "${CMD}"