aboutsummaryrefslogtreecommitdiffstats
path: root/capstone/suite/cstest/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'capstone/suite/cstest/Makefile')
-rw-r--r--capstone/suite/cstest/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/capstone/suite/cstest/Makefile b/capstone/suite/cstest/Makefile
new file mode 100644
index 000000000..fb4b7c294
--- /dev/null
+++ b/capstone/suite/cstest/Makefile
@@ -0,0 +1,13 @@
+SOURCE = src
+INCLUDE = include
+BUILD = build
+LIBRARY = -lcmocka -lcapstone -L../..
+
+all:
+ rm -rf $(BUILD)
+ mkdir $(BUILD)
+ $(CC) $(SOURCE)/*.c -I$(INCLUDE) -o $(BUILD)/cstest $(LIBRARY)
+cstest:
+ $(BUILD)/cstest -d ../MC
+clean:
+ rm -rf $(BUILD)