2018-03-23 12:05:32 +08:00
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
#
|
|
|
|
.SUFFIXES: .cpp .o .c .h
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: clean cleandist
|
|
|
|
|
2018-07-14 10:22:30 +08:00
|
|
|
CXXFLAGS = -std=c++11 -O2 -march=native -Wall -Wextra -Wshadow
|
2018-04-04 12:08:51 +08:00
|
|
|
#CXXFLAGS = -std=c++11 -O2 -march=native -Wall -Wextra -Wshadow -Wno-implicit-function-declaration
|
2018-03-23 12:05:32 +08:00
|
|
|
|
|
|
|
EXECUTABLES=parse
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
all: $(EXECUTABLES)
|
|
|
|
|
2018-07-24 12:42:53 +08:00
|
|
|
parse: main.cpp common_defs.h vecdecode.h linux-perf-events.h
|
2018-03-23 12:05:32 +08:00
|
|
|
$(CXX) $(CXXFLAGS) -o parse main.cpp
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(EXECUTABLES)
|
|
|
|
|
|
|
|
cleandist:
|
|
|
|
rm -f $(EXECUTABLES)
|