agordon / autoconf_cpp_template Goto Github PK
View Code? Open in Web Editor NEWA template for a CPP-based project using autotools (autoconf / automake / etc ).
A template for a CPP-based project using autotools (autoconf / automake / etc ).
Autotools Template for a CPP-based program Copyright (C) 2012 A. Gordon (gordon at cshl dot edu) LICENCE: GPLv3+ Joshiki ------- To use this template, you should be familiar with the autotools programs (autoconf, automake, etc.). A good place to start is The AutoTools book: http://nostarch.com/autotools.htm . TODO when you start a new project --------------------------------- 1. Change you package name in "configure.ac" 2. Create a git repository, use "git tag -a v0.1" to tag a version (it will be used automatically next time you run "./reconf") 3. If you've cloned this program, delete the ".git" directory and start fresh with "git init" 4. If you need "libtool", enable it in "reconf" and "configure.ac" 5. If you need "boost", enable it in "configure.ac" and "src/Makefile.am" 6. Change the name of binary program in "src/Makefile.am" 7. update ".gitignore" as necessary 8. If you have support scripts, update the "./scripts" directory. Otherwise, remove the settings from the "./scripts" directory. The following should work fine ------------------------------ 1. ./reconf only needed if you're a developer, and added new source files or updated "configure.ac" 2. ./configure standard way to build the package. supports the standard "autoconf" options (like --prefix) 3. make compiles the source files in "./src" 4. (sudo) make install install the program to "/usr/local/bin" (or other specified locations) install the scripts to "/usr/share/APPNAME/scripts". 5. make check will compile the test programs in "./tests" and run them. all tests should pass. 6. make dist build a new tarball for distribution/release. It will use the latest "git tag" as version number. 7. make distcheck Verifies that the distribution package is OK (e.g. no missing files). Important Files --------------- 1. AUTHORS, NEWS, THANKS, ChangeLog, README - update as needed. 2. configure.ac - All the project's configuration settings. 3. ./src/* - the main source files. If you add new source files, update "./src/Makefile.am" 4. ./tests/* - the unit-testing files. If you add new source files, update "./tests/Makefile.am" 5. ./scripts/* - support scripts. Will not be copmiled, but willl be installed to "bin" and "share". 5. config/* - build-support files. Most are auto-generated by "reconf" (linked from other sourceS). "git-version-gen" is fixed. This directory is sometimes called "build-aux" in other projects. 6. m4/* M4 macros to detect proper build settings (things like STD::TR1, BOOST, etc). Many more macros are available at the Autoconf-Archive ( http://www.gnu.org/software/autoconf-archive/ ) Installation Example ==================== When running the following commands: ./configure --prefix $HOME/test make make check make install The following files will be created in "$HOME/test" : ./bin ./bin/your_new_program ./bin/example.sh ./share ./share/aclocal ./share/aclocal/ax_cxx_header_stdcxx_tr1.m4 ./share/aclocal/ax_c_long_long.m4 ./share/aclocal/boost.m4 ./share/your_new_package ./share/your_new_package/scripts ./share/your_new_package/scripts/support.sh
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.