Skip to content

Instantly share code, notes, and snippets.

@denkiwakame
Created May 28, 2014 16:58
Show Gist options
  • Save denkiwakame/c7e3bd671f96165ffe23 to your computer and use it in GitHub Desktop.
Save denkiwakame/c7e3bd671f96165ffe23 to your computer and use it in GitHub Desktop.
まけないmake
CCACHE = #ccache
CC = $(CCACHE) g++ -pipe -Wall -fopenmp -g #-pg -g
CXX = $(CCACHE) g++ -pipe -Wall -fopenmp -g #-pg -g
FC = $(CCACHE) gfortran -pipe -Wall #-pg -g
ifndef DEBUG
CFLAGS = -g -O3 -mtune=native -msse3 -unroll-all-loops -fstrict-aliasing -ftree-vectorize
else
CFLAGS = -pg -O0
endif
#CFLAGS += -UDEBUG -DNDEBUG -s
CFLAGS += -DDEBUG -UNDEBUG
CFLAGS += -I$(PREFIX)/include -D__STDC_FORMAT_MACROS
CXXFLAGS = $(CFLAGS) -Woverloaded-virtual #-Weffc++
FFLAGS = $(CFLAGS)
LDFLAGS = -lboost_program_options -laio
DEPRULE = $(PREFIX)/Makefile.autodep
AR = ar
CFLAGS += `pkg-config --cflags opencv libpng`
CXXFLAGS += `pkg-config --cflags opencv libpng`
LDFLAGS += `pkg-config --libs opencv libxml-2.0 libpng`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment