Study

Autotools

슈라。 2008. 11. 24. 21:52

 Software souce code를 다양한 unix 시스템에 적용시키기 위해 자동으로 설정을 해주는 shell script(configure)를 만들어 내는 일련의 package

- autoconf, automake, autoheader...

 

  1. autoconf

    1.  hello.c 작성

      1. #include <stdio.h>
      2. int main(){

        1. printf("hello world!\n");
        2. return 0;
      3. }
    2.  Makefile.in 작성

      1. all : hello
      2. clean :
      3. -rm -rf hello
    3.  configure.ac 작성

      1. AC_PREREQ(2.57)
        AC_INIT(hello, 0.0.1, dsct1472@hanmail.net)
      2.  
      3. AC_PROG_CC
      4. AC_PROG_CPP
      5. ....
      6. AC_CONFIG_FILES([Makefile])
        AC_OUTPUT
    4. $ autoconf     -> configure 파일 생성
    5. $ ./configure
    6. 참고 : autoscan

      • Makefile.in, Makefile.am과 소스 파일을 기초하여 configure.scan 파일을 생성한다. .scan파일은 .ac파일이 될수 있다.

  

이 글은 스프링노트에서 작성되었습니다.

'Study' 카테고리의 다른 글

vim 설정  (0) 2008.11.24
Makefile  (0) 2008.11.24
Linux Device Driver  (0) 2008.11.24
device driver  (0) 2008.11.24
Boot Logo change  (0) 2008.11.23