16 client) DEFS="-DGAMEQC -DCSQC"
20 server) DEFS="-DGAMEQC -DSVQC"
23 >&2 echo + ${CPP} "${@:3}" ${DEFS} "${IN}"
25 # additional information
26 ${CPP} "${@:3}" ${DEFS} \
27 -dM 1>"${WORKDIR}/${MODE}_macros.txt" \
28 -H 2>"${WORKDIR}/${MODE}_includes.txt" \
31 ${CPP} "${@:3}" ${DEFS} -MMD -MP -MT "${OUT}" -Wall -Wundef -Werror "${IN}" -o "${WORKDIR}/${MODE}.txt"
34 if [ ${err} -ne 0 ]; then return ${err}; fi
35 sed 's/^#\(line\)\? \([[:digit:]]\+\) "\(.*\)".*/\n#pragma file(\3)\n#pragma line(\2)/g' "${WORKDIR}/${MODE}.txt"
39 >&2 echo + $(basename ${QCC}) $@
40 # FIXME: relative compiler path is too deep
41 (cd tools && ${QCC} "$@")
44 $(return >/dev/null 2>&1) || {
53 OUT_ABSOLUTE=${PWD}/${OUT}
57 qpp "${IN}" "${OUT}" -I. ${QCCIDENT} ${QCCDEFS} > "${WORKDIR}/${MODE}.qc"
58 qcc ${QCCFLAGS} -o "${OUT_ABSOLUTE}" "../${WORKDIR}/${MODE}.qc"