Skip to content

Fix makefile #3

Merged
merged 5 commits into from
Oct 9, 2017
Merged

Fix makefile #3

merged 5 commits into from
Oct 9, 2017

Commits on Oct 7, 2017

  1. Makefile: Remove -march=native

    -march=native assumes that we build the program on the
    same system that we are going to run it, which can't be
    assument to always be true. The compiler might emit
    instructions which are not available on the target
    system.
    
    This option can be provided by the caller of the Makefile
    if needed. E.g.:
    
      make CXXFLAGS="-mtune=native"
    donald committed Oct 7, 2017
    Configuration menu
    Copy the full SHA
    5c8af88 View commit details
    Browse the repository at this point in the history
  2. Makefile: Add EXTRA_CXXFLAGS

    EXTRA_CXXFLAGS allow the caller to overwrite CXXFLAGS
    defined in the makefile. E.g.:
    
        make EXTRA_CXXFLAGS="-O0"
    donald committed Oct 7, 2017
    Configuration menu
    Copy the full SHA
    7650bcb View commit details
    Browse the repository at this point in the history
  3. Makefile: Remove -g default

    This flags can be specified by the caller as needed. E.g:
    
        make EXTRA_CXXFLAGS="-g -O0"
    donald committed Oct 7, 2017
    Configuration menu
    Copy the full SHA
    d36bd75 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6900deb View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2017

  1. Makefile: Correct recursive usage

    Using $(MAKE) instead of "make", is special for gnu make. It
    correctly processes Makeflags and parallel execution.
    donald committed Oct 8, 2017
    Configuration menu
    Copy the full SHA
    a8f3a4b View commit details
    Browse the repository at this point in the history