ChinaUnix.net
相关文章推荐:

U Boot 201109 makefile

[code]ORG= 0x600 boot0: boot0.o .if ${OBJFORMAT} == aout ${LD} -N -s -T ${ORG} -o boot0.out boot0.o dd if=boot0.out of=${.TARGET} ibs=32 skip=1 .else ${LD} -N -e start -Ttext ${ORG} -o boot0.out boot0.o objcopy -S -O binary boot0.out ${.TARGET} .endif[/code] 连接时,给ld带了个-T选项,并且将ORG作为参数。 看意思这应该就是所谓的“重定位”了。可是我查ld的手册,-T选项是用来指定一个make脚本的,不是...

by wellbye - BSD - 2006-04-06 13:52:06 阅读(2801) 回复(1)

相关讨论

请问安装SCO5.05时,在boot后可以敲一些什么东西,具体是什么意思?(比如:defbootstr link=ad160 )

by lxr01 - 其他UNIX - 2007-02-06 09:38:40 阅读(1546) 回复(2)

单用户启动 , killall -HUP inetd.conf passwd

by sharkman2004 - BSD - 2005-06-18 14:45:12 阅读(808) 回复(0)

大家好,我是个高中生,高中1年纪。 最近在学习linux下的编程。 // 文件main.c #include #include "hello.h" int main() { str_printf("hello"); return 0; } // hello.h #ifndef HELLO_H_ #define HELLO_H_ void str_printf(const char *str); #endif // hello.c #include "hello.h" void str_printf(const char *str) { printf("hello.c:%s\n", str); } 请问makefile文件该怎么写?

by 写自己的操作系 - C/C++ - 2009-07-27 17:15:17 阅读(2607) 回复(13)

test.h #ifndef _TEST_H_ #define _TEST_H_ void print(); #endif test.c #include #include "test.h" void print() { printf("hello,world\n"); } main.c #include "test.h" int main() { print(); return 0; } makefile: mycpp: main.o test.o gcc -o mycpp main.o test.o main.o: main.c test.h gcc -c main.c test.o: test.c gcc -c test.c makefile...

by hr_it - C/C++ - 2008-09-17 00:10:10 阅读(3907) 回复(11)

这是我写的一个makefile VPATH=../lib:../include:../bin lib = ../lib/ bin = ../bin/ objects=bank.o adminlogin.o mainmenu.o execute.o deposit.o withdraw.o query.o \ write.o read.o listall.o cancelaccount.o establishaccount.o bank : $(objects) gcc $(objects) -o $(bin)bank bank.o : bank.c includeofbank.h includeofstruct.h gcc -c bank.c -o $(lib)bank.o mainmenu.o : mainmen...

by wangxiaoguang - C/C++ - 2008-08-06 12:52:02 阅读(2006) 回复(10)

本人明天就要交程序 但是突然发现要求要makefile 但我对这个根本不太了解 我有5个目录,as.tgs.client.kdc 和sever_v 每个目录下基本都有main.cpp和tea.hpp等文件 请问如何构造makefile? 应该是在主目录下构造一个makefile,然后在5个目录下分别构造5个makefile, 但是该怎么写了? 更大的问题是,我的程序是在LINUX下编译通过 但是放到SUN的UNIX下编译无法通过 如果是在Solaris上编译,因该把相应的头文件包含进去,如:“sys /...

by babobo - Shell - 2005-09-19 10:39:02 阅读(1117) 回复(1)

下了个java1.4源代码包,怎样执行make,我的操作系统是SCO UNIX

by zxllxz - Java - 2005-09-04 15:19:38 阅读(814) 回复(0)

为什么要加上-I . -g -Wall -ansi呀? 用gcc -c main.c 不就好了吗? :em14:

by qiqixiao - Linux论坛 - 2004-10-08 15:03:12 阅读(568) 回复(1)

freemem:freemem.c cc freemem.c -o freemem

by deng_save_file - Linux论坛 - 2004-07-08 07:36:36 阅读(462) 回复(0)

下面这个命令不懂,哪位高手拔刀相助: gcc -I . -g -Wall -ansi -c main.c 红色部分请指教! :roll:

by qiqixiao - Shell - 2004-10-09 09:09:26 阅读(863) 回复(1)