📄 make.html
字号:
<HTML><HEAD><TITLE>Newmat09 - make</TITLE></HEAD><BODY><H2>Make files</H2><A HREF="custom.html"> next</A> - <A HREF="custom.html"> skip</A> - <A HREF="starting.html"> up</A> - <A HREF="index.html"> start</A><P>I have included <I>make</I> files for a number of compilers. These provide analternative way of compiling your programs than with the IDE that comes with PCcompilers. See the <A HREF="files.html">files section</A> for details.See the <A HREF="example.html">example</A> for how to use them. Leave out thetarget name to compile and link all my examples and test files.<H3>PC</H3>I include make files for most of the various PC compilers I have access to.They all use the make utility that comes with the compiler. I don't know whetherthey work with versions of the compilers other than the ones I have. Themake filesfor Borland need editing to show where you have stored your Borland compiler.<H3>Unix</H3>The <I>make</I> files for the Unix compilers link a .cxx file to each .cppfile since some of these compilers do not recognise .cpp as a legitimateextension for a C++ file. I suggest you delete this part of the <I>make</I>file and, if necessary, rename the .cpp files to something your compilerrecognises.<P>My <I>make</I> files for Unix systems are for use with <TT>gmake</TT>rather than <TT>make</TT>.Ordinary <TT>make</TT> works with them on the Sun but not the SiliconGraphics or HP machines. On Linux use <TT>make</TT>.<P>To compile everything with the CC compiler use<PRE> gmake -f cc.mak</PRE>or for the gnu compiler use<PRE> gmake -f gnu.mak</PRE>I have set O2 optimisation for CC but not for gnu, since I couldn't get it tocompile with O2 set. You may need to change these options.<P>There is a line inthe make file <TT>rm -f -i $*.cxx</TT>. Some systems won't accept this line andyou will need to delete it. In this case, if you have a bad compile and youare using my scheme for linking .cxx files, you willneed to delete the .cxx file link generated by that compile before you can dothe next one. You may get away with just deleting the option <TT>-i</TT> inwhich case you you won't be asked before a <TT>.cxx</TT> file is deleted.<P><A HREF="custom.html"> next</A> - <A HREF="custom.html"> skip</A> - <A HREF="starting.html"> up</A> - <A HREF="index.html"> start</A><P></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -