共 6 篇文章 |
|
例如,我们想把前一步从内核源码树 usr目录下拷贝的initramfs_data.cpio.gz 展开到~/initramfs-test/initramfs_data目录下,则使用下列命令: mkdir ~/initramfs-test/initramfs_data cd ~/initramfs-test/initramfs_data cpio -i -F ../initramfs_data.cpio.gz --no-absolute-filename 命令执行完毕后,initramfs_data目录下出现多个目录和文... 阅1714 转2 评0 公众公开 12-03-30 18:04 |
怎样编写Makefile文件 - Moose W. Oler的日志 - 网易博客怎样编写Makefile文件。SRCS=printenv.c OBJS=printenv.o SHAR=shar MANDIR=/usr/man/manl/printenv.l BINDIR=/usr/local/bin DEPEND= makedepend $(CFLAGS)lint: $(SRCS) lint $(CFLAGS) $(SRCS)3.11 隐式规则Makefile Implicit Rules假设有如下rule:Consider the rule we used for pr... 阅868 转3 评0 公众公开 10-12-13 23:06 |
iptr = (int *)dlsym(handle, "int_object");All objects loaded automatically as a result ofinvoking dlopen( ) on the referenced object are also closed. handle is theinvoking dlopen( ) on the referenced object are also closed. handle is thevalue returned by a previous invocation of dlopen( ).Objects loaded by o... 阅8690 转2 评0 公众公开 10-12-13 22:28 |
阅9465 转16 评0 公众公开 10-12-13 22:27 |
} /* mytool1.h */ #ifndef _MYTOOL_1_H #define _MYTOOL_1_H void mytool1_print(char *print_str);gcc -c main.c gcc -c mytool1.c gcc -c mytool2.c gcc -o main main.o mytool1.o mytool2.o.main:main.o mytool1.o mytool2.o gcc -o main main.o mytool1.o mytool2.o main.o:main.c mytool1.h mytool2.h gcc -c main.c mytool1.o:mytoo... 阅248 转5 评0 公众公开 10-12-13 22:09 |