./configure && make && make install

nayana의 이미지

개발한 프로그램을 배포할 목적으로 만들고 있습니다.

Quote:
./configure
make
make install

이런식으로 만들려고 하는데...
test 디렉토리에 memo main incl 디렉토리를 만들고
각각의 디렉토리에는 memo.c main.c incl.c 파일있습니다.
최상위 test디렉토리 에는 Makefile.am 파일을 만들고
내용은 다음과 같습니다.
1 SUBDIRS           = main memo  incl
2 bin_PROGRAMS = nayana
3 diary_SOURCES = main/main.c memo/memo.c incl/incl.c 

그런다음에 최상위 test디렉토리 autoscan 명령어를 수행하고
configure.scan 파일을 configure.ac 변경하였습니다.

configure.ac
      1 #                                               -*- Autoconf -*-
      2 # Process this file with autoconf to produce a configure script.
      3
      4 AC_PREREQ(2.59)
      5 AC_INIT( nayana, 0.0.1, nayana@empal.com)
      6 AM_INIT_AUTOMAKE( nayana, 0.0.1 )
      7 AC_CONFIG_SRCDIR([main/main.c])
      8 AC_CONFIG_HEADER([config.h])
      9
     10 # Checks for programs.
     11 AC_PROG_CC
     12
     13 # Checks for libraries.
     14
     15 # Checks for header files.
     16
     17 # Checks for typedefs, structures, and compiler characteristics.
     18
     19 # Checks for library functions.
     20
     21 AC_CONFIG_FILES([Makefile])
     22 AC_OUTPUT
 

그런다음에 autoheader
=>aclocal
=>autoconf
=>automake --foreign --add-missing --copy
=>./configure
하였습니다.
그런데 Makefile이 안만들어지네요...?
ins878의 이미지

아마다 재귀적 make를 사용하시는 것 같은데요. 상위 디렉토리에 있는 Makefile이 하위에 위치한 Makefie을 재귀적 호출하기 위해서는 AC_PROG_MAKE_SET 것을 추가해야 합니다. AC_PROG_MAKE_SET을 하면, 아마 Makefile이 생길 겁니다.

pynoos의 이미지

AC_CONFIG_FILES에, 만들어질 모든 Makefile을 넣어주셔야합니다.

댓글 달기

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 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <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].
  • 사용할 수 있는 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>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <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].
  • You can use Textile markup to format text.
  • 사용할 수 있는 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>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <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].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 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>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.