CXX = g++
CXXFLAGS = -g -Wall -std=c++11

all: testfile

$testfile.o: $(TEST_DYNINST)/testfile.cpp
	$(CXX) $(CXXFLAGS) -c -o testfile.o testfile.cpp

testfile: testfile.o
	$(CXX) -o testfile testfile.o -L $(PATH_TO_DYNINST_LIB) -lcommon \
		-ldyninstAPI \
		-lpthread \
		-lboost_system \
		-ltbbmalloc \
		-ltbbmalloc_proxy

clean:
	rm -f *.o testfile
