4 # $1: file w/o extension
5 # $2: src path (optional)
9 if [ "z$ptmp" = "z" ]; then
12 ${CC} -DNDEBUG -c -o ${BUILDPATH}/obj/$1.o ${CFLAGS} -Isrc ${ADDITIONAL_INCLUDES} $ptmp/$1.c
16 # $1: file w/o extension
17 # $2: dst path (optional)
24 if [ "z$ptmp" = "z" ]; then
29 ${LINK} ${LINKFLAGS} -o $ptmp/${fname}${EXESFX} ${BUILDPATH}/obj/${fname}.o $* ${LINKLIBS}
30 if [ "z$WINE" != "z" ]; then
31 chmod 711 $ptmp/${fname}${EXESFX}
46 OLINKFLAGS
="$LINKFLAGS"
53 LINKFLAGS
="$OLINKFLAGS"
93 echo "building K8Jam..."
95 mkdir
-p ${BUILDPATH} 2>/dev
/null
96 rm -rf ${BUILDPATH}/* 2>/dev
/null
97 mkdir
-p ${BUILDPATH}/obj
2>/dev
/null
99 mkdir
-p ${DESTPATH} 2>/dev
/null
100 rm -rf ${DESTPATH}/* 2>/dev
/null
103 donativelink
"unigen"
105 echo ${BUILDPATH}/unigen${EXESFX} ${BUILDPATH}/re9_unicode_mapping.c unidata
/UnicodeData.txt
106 ${BUILDPATH}/unigen${EXESFX} ${BUILDPATH}/re9_unicode_mapping.c unidata
/UnicodeData.txt
111 echo tools
/yyacc src
/jamgram.lemon src
/jamgramtab.h src
/jamgram.yy
112 tools
/yyacc src
/jamgram.lemon src
/jamgramtab.h src
/jamgram.yy
113 echo ${BUILDPATH}/lemon
${EXESFX} -q src
/jamgram.lemon
114 ${BUILDPATH}/lemon
${EXESFX} -q src
/jamgram.lemon
115 #rm ${BUILDPATH}/lemon${EXESFX}
118 libobj
="${BUILDPATH}/obj/jamgram.o"
119 for srcf
in ${srclist}; do
121 libobj
="${libobj} ${BUILDPATH}/obj/${srcf}.o"
125 ${AR} ${BUILDPATH}/obj/libjam.a ${libobj}
126 if [ "z${RANLIB}" != "z" ]; then
127 echo "Ranlib libjam.a"
128 ${RANLIB} ${BUILDPATH}/obj
/libjam.a
134 donativecc
"mkjambase"
135 donativelink
"mkjambase"
136 echo "preparing Jambase"
137 echo ${BUILDPATH}/mkjambase
${EXESFX} src
/jambase.c defaults
/Jambase
138 ${BUILDPATH}/mkjambase
${EXESFX} src
/jambase.c defaults
/Jambase
139 #rm ${BUILDPATH}/mkjambase${EXESFX}
142 dolink
"jam" ${DESTPATH} ${BUILDPATH}/obj/jambase.o ${BUILDPATH}/obj
/libjam.a
143 mv ${DESTPATH}/jam
${DESTPATH}/k8jam
145 #rm ${BUILDPATH}/obj/* 2>/dev/null