다중 하위 경로의 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.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.