摘要: object=test.o ExShell.oall:libExShell.so test $(object)test:test.og++ -o $@ $^ -L. -lExShell .cpp.o:g++ -c -fPIC $<libExShell.so:ExShell.og++ -fPIC -shared -o $@ $^clean:@rm *.o test libExShell.so这是一个项目中的makefile.很简单的一个makefile.文件有ExShell.cpp,ExShell.h,test.cpp.生成动态链接库的一个简单makefile第一行是变量定义第二行是mak 阅读全文
posted @ 2012-07-28 17:05 gui__li 阅读(4536) 评论(0) 推荐(0)