다중 하위 경로의 c++ 코드를 autotools로 컴파일할 때 Makefile.am 작성법이 궁금합니다.

air2015의 이미지

[폴더/소스 구조]

Root _ Makefile.am
    |_ configure.ac
    |_ Car _ Main.cxx
          |_ Makefile.am
          |_ Parts _ Engine.h
                  |_ Engine.cxx
                  |_ Break.h
                  |_ Break.cxx
                  |_ Makefile.am

위와 같은 폴더 구조로 소스를 작성하였고

autotools(autoconf/automake)을 이용해서 컴파일을 하려고 합니다.

이런 상황에서 3개의 Makefile.am은 어떻게 작성해야 할까요??

최상위에만 Makefile.am을 두고 컴파일은 가능한데

이런식으로 Makefile.am을 여러개 두고 컴파일하려니 방법을 모르겠어요.

방법이나 관련 URL이 있다면 공유 부탁드리겠습니다ㅜㅜ

air2015의 이미지

Root _ Makefile.am
    |_ configure.ac
    |_ Car _ Main.cxx
          |_ Makefile.am
          |_ Car
          |_ Parts _ Engine.h
                  |_ Engine.cxx
                  |_ Engine.o
                  |_ Break.h
                  |_ Break.cxx
                  |_ Engine.o
                  |_ Makefile.am
oosap의 이미지

http://studyfoss.egloos.com/5343014

정확히 원하시는 사례와 일치하는지는 모르겠으나 저는 여기서 큰 도움 받았습니다.

Thanks for being one of those who care for people and mankind.
I'd like to be one of those as well.