manywaypark's Blog
개발, 검색, 함수

'autotools'에 해당되는 글 2건

  1. 2014.05.19 framewerk(fwtemplates) - an autotools wrapper
  2. 2014.03.31 debug/release mode on linux

framewerk(오타 아님)는 일종의 autotools wrapper이다.

c/c++은 물론이고 javascript와 erlang도 지원하는 점이 맘에든다.

사용법은 참조링크에 쉽고 자세하게 나온다.

간단한 예제를 하나 들자면 erlang project에서 rebar 및 git을 사용할 경우 다음과 같이 한다.

$ fw-init --name myprj --template erlang-rebar --revision git

$ cd myprj

$ ./bootstrap

$ ./configure

$ make

지원되는 버전 관리 도구(revision에서 설정): git, svn, cvs

지원되는 개발 환경(template에서 설정): c, c++, erlang, erlang-rebar, java-mvn


refs: https://code.google.com/p/fwtemplates/


2014-11-11 추가: project configuration(version number 설정 등)은 fw-pkgin/config 파일을 편집한다.


2016-06-07 추가: 원래 프로젝트 페이지는 관리 안된지 좀 오래 인듯. 비교적 최근까지 관리되는 곳은 여기: https://github.com/dukesoferl/fw

또한 빌드 및 사용 법은, ./bootstrap -> ./build (--prefix=/usr/local) -> sudo make install 로 하면 좀더 간편하다.


happy hackin'

debug/release mode on linux

tips & tricks/Linux/Unix 2014. 3. 31. 14:32 by manywaypark

autotools 또는 configure 사용시 debug 정보 넣기


$ mkdir debug

$ mkdir release

$ cd debug && /path/to/configure --prefix=/dbg CPPFLAGS=-DDEBUG CXXFLAGS="-g -O0" && make && make install

$ cd ../release && /path/to/configure CPPFLAGS=-DNDEBUG && make && make install

debug에는 debug 정보가 포함된 바이너리가 생기고 release에는 debug 정보가 포함되지 않은 바이너리가 생긴다.

install target directory(prefix)가 다른 것에 주의한다.


box 레벨에서는 다음과 같이 해서 파일을 하나 생성해두면 prefix를 /dbg 로 해서 configure를 실행한 경우 자동으로 debug 정보를 포함하게 된다.

echo 'CPPFLAGS=-DDEBUG CFLAGS="-g -O0"' >> /dbg/share/config.site


ref: http://stackoverflow.com/questions/4553735/gnu-autotools-debug-release-targets


happy hackin'



1 
분류 전체보기 (306)
잡담 (20)
함수형 언어 (65)
emacs (16)
java (18)
tips & tricks (154)
사랑 (1)
가사 (0)
독서 (4)
mobile (6)
비함수형 언어 (2)

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

04-24 07:36