2
Autotools에서 시작하고 있으며 일부 사용 예제와 함께 라이브러리 (학습용으로 일반적인 스택 구현)를 패키징하려고합니다.Autotools를 사용하여 라이브러리 패키징
라이브러리 소스는 src
이고, 예는 examples
입니다.
나는 Makefile.am
다음과 같습니다
lib_LTLIBRARIES = libstack.la
libstack_la_SOURCES = src/stack.c
check_PROGRAMS = example/stack
example_stack_SOURCES = example/stack.c
example_stack_LDADD = libstack.la
만큼 나의 이해는 간다, 내가 libstack.la
에 대한 헤더를 지정해야하고, 이후 autoreconf
를 실행할 때 내 예에서,하지만 다음과 같은 오류를 얻을 포함 Makefile.am
에 libstack_la_HEADERS = src/stack.h
를 추가하면 :
$ autoreconf -iv
... (omiting irrelevant parts)
Makefile.am:3: error: 'libstack_la_HEADERS' is used but 'libstack_ladir' is undefined
autoreconf: automake failed with exit status: 1
나는 dir
접두사에 관한 정보를 찾을 수 없습니다.
무엇이 여기에 있습니까?
libstackincludedir = $(includedir)/my_mega_stack
libstackinclude_HEADERS = stack.h
: