 +void parse(int argc, char *argv[], command_line_options *clo);
 +
 +#endif
-diff --git a/clients/drsigil/drsigil_instrument.c b/clients/drsigil/drsigil_instrument.c
+diff --git a/clients/drsigil/instrument.c b/clients/drsigil/instrument.c
 new file mode 100644
 index 00000000..05d9868b
 --- /dev/null
-+++ b/clients/drsigil/drsigil_instrument.c
++++ b/clients/drsigil/instrument.c
 @@ -0,0 +1,602 @@
 +#include "drsigil.h"
 +#include "drmgr.h"

+# also simplifies relocation in DR
+# set(DynamoRIO_USE_LIBC OFF)
+
+add_library(drsigil SHARED drsigil.c drsigil_instrument.c drsigil_ipc.c drsigil_parser.c)
+find_package(DynamoRIO)
+if (NOT DynamoRIO_FOUND)
+  message(FATAL_ERROR "DynamoRIO package required to build")

From 99a9af7f870b2485bd3582e1a836baf4382079b5 Mon Sep 17 00:00:00 2001
From: Mike Lui <mike.d.lui@gmail.com>
Date: Thu, 20 Jul 2017 15:24:21 -0400
Subject: [PATCH] patch

---
 clients/drsigil/CMakeLists.txt         |  27 ++
 clients/drsigil/drsigil.c              | 259 ++++++++++++++
 clients/drsigil/drsigil.h              | 301 +++++++++++++++++
 clients/drsigil/instrument.c           | 602 +++++++++++++++++++++++++++++++++
 clients/drsigil/ipc.c                  | 376 ++++++++++++++++++++
 clients/drsigil/parser.c               |  55 +++
 clients/drsigil/pthread_defines.h      | 283 ++++++++++++++++
 clients/drsigil/start_stop_functions.h |  50 +++
 8 files changed, 1953 insertions(+)
 create mode 100644 clients/drsigil/CMakeLists.txt
 create mode 100644 clients/drsigil/drsigil.c
 create mode 100644 clients/drsigil/drsigil.h
 create mode 100644 clients/drsigil/instrument.c
 create mode 100644 clients/drsigil/ipc.c
 create mode 100644 clients/drsigil/parser.c
 create mode 100644 clients/drsigil/pthread_defines.h
 create mode 100644 clients/drsigil/start_stop_functions.h

diff --git a/clients/drsigil/CMakeLists.txt b/clients/drsigil/CMakeLists.txt
new file mode 100644
index 00000000..728be3c2
--- /dev/null
+++ b/clients/drsigil/CMakeLists.txt
@@ -0,0 +1,27 @@
