Makefile.tool

From Genome Analysis Wiki
Revision as of 17:20, 28 March 2011 by Mktrost (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Makefile.tool

Settings

Basic Settings

  • EXE - the executable name
  • BIN_DIR - path to where you want your binary. Default is ../../src/bin
  • PATH_TO_BASE - path to the base statgen directory (inside the statgen directory). Default is ../..

Your cpp & h File Settings

Tell the makefiles the names of your files

  • TOOLBASE - the base filename where you have both .h & .cpp files.
  • SRCONLY - any cpp files without headers.
  • HDRONLY - any header files without cpp
  • COMPILE_ANY_CHANGE - any files that should be compiled if any of the files change. These files MUST also be included in TOOLBASE or SRCONLY. Here they are just the base name without the extension.

Additional Settings

  • VERSION - version of the code. Default is 0.0.1. This is optional if you want to make use of it.
  • USER_COMPILE_VARS - any additional compile variables that you may have. Make sure you specify the -D.
  • USER_INCLUDES - any additional directories that need to be included to pick up header files. Make sure you specify the -I. (example: USER_INCLUDES=-ImyDir1 -ImyDir2)
  • USER_LIBS - any additional libraries that you need to include.
  • INSTALLDIR - where you want your executable to go if you type make install. Default is /usr/local/bin

Example Contents of Makefile.tool

EXE = libraryExample
TOOLBASE = LibraryExample
SRCONLY = Main.cpp
PATH_TO_BASE = /home/mktrost/statgen
BIN_DIR = .