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.
- [hillmover@localhost src_pkg_home] $ vi Make.define.linux
WORKDIR=... - Open <src_pkg_home>/std/linux.mk file, then replace "nawk" with "awk".
- $ make
- 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