From fc1d19b612c4c63e0a5e08dce4fadc1a14b66706 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 8 Oct 2016 14:59:18 -0400 Subject: [PATCH] Add a Makefile. --- Makefile | 13 +++++++++++++ test.cc | 2 -- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..12299a2 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +CXX := clang++ +CXXFLAGS := -g -std=c++11 + +all: test-zc test-tr + +test-zc: test.cc + $(CXX) $(CXXFLAGS) $< -o $@ + +test-tr: test.cc + $(CXX) -DZCPOINTER_TRACK_REFS=1 $(CXXFLAGS) $< -o $@ + +clean: + rm -rf test-zc test-tr *.dSYM diff --git a/test.cc b/test.cc index 3c1e152..92da993 100644 --- a/test.cc +++ b/test.cc @@ -14,8 +14,6 @@ #include -#define ZCPOINTER_TRACK_REFS 1 - #include "zcpointer.h" class C { -- 2.43.5