摘要: makefile 可以将编译链接过程简化,结合使用变量更加简化LIBS = -lm #-l是加入函数库,m代表libm.so -L/path在非默认时需要OBJS = main.o fa.o fb.o fc.o #gcc -c fn.c 产生的同名fn.o目标文件CFLAGs = -Wall #Wall产生详细编译过程main: ${OBJS} #make main指令解释为 gcc -o main main.o fa.o fb.o fc.o gcc -o $@ ${OBJS} ${LIBS} #$@即当前目标mainclean: ... 阅读全文
posted @ 2012-09-22 17:06 junka 阅读(216) 评论(0) 推荐(0)
摘要: You can get Ubuntu from here http://www.ubuntu.org.cn/downloadIt provides Ubuntu 12.04LTS now.I choose the desktop version.I have already installed WinXP system on my laptop.And as I'm not familiar with Linux,I choose to make my laptop a dual system one.So I can switch the systems when I need.Lo 阅读全文
posted @ 2012-09-22 14:30 junka 阅读(430) 评论(0) 推荐(0)