diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-10-15 09:32:53 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-10-15 09:32:53 +0200 |
commit | 68bcbf1e0e61958f737bfc279974903f1b0c2502 (patch) | |
tree | 30a822683f7a52457d52bcfaaea6413235848db6 /Makefile |
Initial
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..733d520 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +CXX = g++ +CXXFLAGS = -Wall -Wextra -std=c++11 -fwrapv +ifneq ($(DEBUG),) + CXXFLAGS += -g +else + CXXFLAGS += -O2 +endif +BIN = stddev + +.PHONY: all clean remake + +all: $(BIN) + +clean: + rm -rf $(BIN) *.o *.dSYM + +remake: clean all + + +$(BIN): $(patsubst %.cpp,%.o,$(wildcard *.cpp)) + $(CXX) -o $@ $^ + +%.o: %.cpp $(wildcard *.h) + $(CXX) $(CXXFLAGS) -c -o $@ $< |