|
楼主 |
发表于 2006-9-12 16:21:18
|
显示全部楼层
1. If you're using either SunOS 4.1.x, SVR4, or BSD/386, copy one of the
files "Make.def.sun", "Make.def.svr4", or "Make.def.44" into the file
"Make.defines". This file ("Make.defines") is included by all the
Makefiles in the individual directories. Edit "Make.defines" as
appropriate for your system. Note that *YOU MUST MODIFY* "Make.defines"
with the pathname of the "libmisc.a" library, any special compiler
flags, etc.
If you aren't using one of these three systems, start with one of these
three "Make.def.*" files and edit is as appropriate. I am interested
in receiving any new versions of this file for additional Unix systems,
as long as I can include them in future releases of this tar distribution.
2. If you're using either SunOS 4.1.x, SVR4, or BSD/386, go into one of
the directories "lib.sun", "lib.svr4", or "lib.44" and type "make" or
"gmake". (Be sure to read the rest of this file first.) This makes
the library "libmisc.a" that almost every other program requires.
This is where the error functions from Appendix B.2 reside, for example.
Note that 90% of the files in these three lib directories are just
hard links to each other, as the source file is identical between
the three systems.
If you aren't using one of these three systems, pick the directory that
is closest to your system, and modify as required ... The files with a
link count of 1 (i.e., those that differ between the three different
systems) will probably require the most work to port to other systems.
Note also that the file "systype.sh" is used by the Makefile in these
lib directories to try and determine which system we're on. You almost
certainly need to modify this shell script also.
3. The file "Sourcefiles" lists which source file corresponds to each
Program in the book. Go into the desired directory and make whatever
program you want. There is not a master Makefile that make's everything.
4. Each Makefile may contain entries for programs other than those that
are distributed in this source release. These are probably for small
test programs that I wrote while writing the book. Since these programs
aren't in the book, and since it would take too much time to go through
and figure out what each one does and document it adequately, they are
not in this release.
我按照1中所说,将Make.def.44的内容拷贝到文件Make.defines文件之后,在lib.44下执行make命令
/bin/sh :line 1: systype.sh : command not found. 一直print者句话, 好像死循环似的.我刚开始学习linux,还不懂Makefile,shell编程等东东. 请版主多多指点! 谢谢. |
|