Created
May 28, 2014 16:58
-
-
Save denkiwakame/c7e3bd671f96165ffe23 to your computer and use it in GitHub Desktop.
まけないmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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