正在加载图片...
Hello world- Step by Step hello. c #include <stdio.h> int main( printf( Hello World! n); return 0 02. Makefile. am bin Programs= hello hello SOURCES helloc configure. in AC INIT(hello. c) AM INIT AUTOMAKE(hello, 0.1) AC PROG CC AC OUTPUT(Makefile) 4. aclocal 5. autoconf 6. automake --add-missing--foreign 7. /configure 8mae( make install安装, make dist产生安装包)Hello World – Step by Step • 1. hello.c #include <stdio.h> int m ain() { printf(“Hello World!\n”); return 0; } • 2. Makefile.am bin_P ROGRAMS = hello hello_SOUR C ES = hello.c • 3. configure.in AC_INIT(hello.c) AM_INIT_AUTOMAKE(hello, 0.1) AC_PROG_CC AC_OU TPUT(Makefile) • 4. aclocal • 5. autoconf • 6. automake --add-missing --foreign • 7. ./configure • 8. make ( make install 安装,make dist 产生安装包)
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有