how to `make` the src code of APUE book
来源:互联网 发布:jquery遍历数组 编辑:程序博客网 时间:2024/05/19 15:40
Firstly, go to www.apuebook.com to get the src code package.
If you'd like to `make all` the code in a time, pls follows the Instruction 1.
If not, I also provide the alternative instruction for your customized code.
Instruction 1: `make all` code.
- Unpack the source package.
- Open <src_pkg_home>/Make.define.linux file, then set WKDIR to the pathname of the tree containing the source code.
- Open <src_pkg_home>/std/linux.mk file, then replace "nawk" with "awk".
- $ make
WORKDIR=...
- Unpack the source package.
- Open <src_pkg_home>/Make.define.linux file, then set WKDIR to the pathname of the tree containing the source code.
- Open <src_pkg_home>/Makefile, then set DIRS = lib.
- [hillmover@localhost src_pkg_home] $ make Now, you should find libapue.a file under the <src_pkg_home>/lib path.
- Customize code. For example, you can open <src_pkg_home>/file/ls1.c, then change the code as your personal requirements.
- Compile & Link your customized code [hillmover@localhost file] $ gcc -c -I ../include -o ls1.o ls1.c
[hillmover@localhost file] $ gcc -o ls1 ls1.o ../lib/libapue.a
- how to `make` the src code of APUE book
- The Grammer of Graphics 读书笔记 - How To Make a Pie
- How to find the source code of the special command?
- How to get the source code of the chromium of the specified revision
- How to analyse the code
- The Defining Decade-Why Your Twenties Matter--And How to Make the Most of Them Now
- How to make an SDL window the child of another window in Win32
- How to make the sprite image ?
- How to make the strings upside down
- FLEX how to reduce the amount of code to reduce memory consumption
- how to find out the response code(200,404,400...) of the URL?
- How to collect TrustZone debug logs and check the meaning of error code in the logs
- how to read source code of angular?
- how to extract code of apk file
- How to code the forward declaration of class or struct using template?
- How To Make Bootanimation (Base on Android Source Code)
- Overview of the Book
- the book of meteor
- 如何在ClearCase里重命名VOB Tag
- Java的工厂模式(Factory)之二
- 40种网站设计常用技巧
- TreeView
- listbox控件的一些操作
- how to `make` the src code of APUE book
- 2007年计算机专业毕业生就业状况调查
- 计算机的学生跨专业考研
- 计算机专业学生就业方向
- 关于计算机专业学生就业的思考
- 导出excel的另外一种方法
- 计算机专业学生就业浅析
- 2008脚本大赛PowerShell高级组Event 4解题及分析
- 男人生活心得