주 메뉴 열기

wwiki β

바뀜

크로스컴파일

544 바이트 추가됨, 2019년 5월 26일 (일) 07:15
편집 요약 없음
exec pkg-config "$@"
</syntaxhighlight>
 
=소스작성과정=
==Makefile.am 작성==
#바이너리명
bin_PROGRAMS = hello
#소스명
hello_SOURCES = hello.c
==configure.ac 생성==
$ [[autoscan]]
생성된 configure.scan를 수정하여 configure.ac로 저장
 
AC_INIT, AM_INIT_AUTOMAKE는 필수이다.
 
AC_INIT는 적절히 수정한다.
 
AM_INIT_AUTOMAKE는 적절히 추가한다.
 
AM_INIT_AUTOMAKE(hello, 1.0)
 
==configure 생성==
$ aclocal
$ autoheader
$ autoconf
 
==Makefile.in 생성==
$ automake --foreign --add-missing --copy
 
==Makefile 생성==
$ ./configure
=빌드순서=
편집
2,431