4 # $1: file w/o extension
5 # $2: src path (optional)
9 if [ "z$ptmp" = "z" ]; then
12 ${CC} -DNDEBUG -std=gnu99 -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"
90 echo "building K8Jam..."
92 mkdir
-p ${BUILDPATH} 2>/dev
/null
93 rm -rf ${BUILDPATH}/* 2>/dev
/null
94 mkdir
-p ${BUILDPATH}/obj
2>/dev
/null
96 mkdir
-p ${DESTPATH} 2>/dev
/null
97 rm -rf ${DESTPATH}/* 2>/dev
/null
100 donativelink
"unigen"
102 ${BUILDPATH}/unigen${EXESFX} ${BUILDPATH}/re9_unicode_mapping.c unidata
/UnicodeData.txt
107 tools
/yyacc src
/jamgram.lemon src
/jamgramtab.h src
/jamgram.yy
108 ${BUILDPATH}/lemon
${EXESFX} -q src
/jamgram.lemon
109 #rm ${BUILDPATH}/lemon${EXESFX}
112 libobj
="${BUILDPATH}/obj/jamgram.o"
113 for srcf
in ${srclist}; do
115 libobj
="${libobj} ${BUILDPATH}/obj/${srcf}.o"
119 ${AR} ${BUILDPATH}/obj/libjam.a ${libobj}
120 if [ "z${RANLIB}" != "z" ]; then
121 echo "Ranlib libjam.a"
122 ${RANLIB} ${BUILDPATH}/obj
/libjam.a
128 donativecc
"mkjambase"
129 donativelink
"mkjambase"
130 echo "preparing Jambase"
131 ${BUILDPATH}/mkjambase
${EXESFX} src
/jambase.c defaults
/Jambase
132 #rm ${BUILDPATH}/mkjambase${EXESFX}
135 dolink
"jam" ${DESTPATH} ${BUILDPATH}/obj/jambase.o ${BUILDPATH}/obj
/libjam.a
137 #rm ${BUILDPATH}/obj/* 2>/dev/null