- cp "${SRCFILE}" "${TMPFILE}" \
- && "$smpif2c" "${TMPFILE}" \
- && "$smpicc" "$@" "${CFILE}" \
- && rm -f "${CFILE}" \
- && rm -f "${TMPFILE}" \
- || exit $?
-
- # When the file is compiled with "-c" and no output file is specified with
- # "-o", rename the output. FIXME: do it properly.
- if [ -f "${CFILE%.c}.o" ]; then
- mv "${CFILE%.c}.o" "${SRCFILE%.f}.o"
- fi
-}
+list_add_not_empty CMDLINE ${INCLUDEARGS}
+list_add_not_empty CMDLINE ${CMAKE_LINKARGS}
+list_add_not_empty CMDLINE "${LINKARGS}"