From a83821cd6899e526820b151c3b08a8cf4e167687 Mon Sep 17 00:00:00 2001
From: clc5q <clc5q@git.zephyr-software.com>
Date: Thu, 25 Oct 2007 20:12:04 +0000
Subject: [PATCH] Makefile for building IDA Pro plugins

---
 .gitattributes |  1 +
 makefile       | 13 +++++++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 makefile

diff --git a/.gitattributes b/.gitattributes
index 15bd6f24..b52b1af6 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,3 +1,4 @@
 * text=auto !eol
 /SMPStaticAnalyzer.cpp -text
+/makefile -text
 /plugin.script -text
diff --git a/makefile b/makefile
new file mode 100644
index 00000000..b7fb9965
--- /dev/null
+++ b/makefile
@@ -0,0 +1,13 @@
+IDAROOT=${HOME}/idastd
+SRC=SMPStaticAnalyzer.cpp
+OBJS=SMPStaticAnalyzer.o
+CC=g++
+LD=g++
+CFLAGS=-D__IDP__ -D__PLUGIN__ -c -D__LINUX__ -I${IDAROOT}/SDK/include
+LDFLAGS=--shared $(OBJS) -L${IDAROOT} -lida --no-undefined \
+	-Wl,--version-script=./plugin.script
+
+all:
+	$(CC) $(CFLAGS) $(SRC)
+	$(LD) $(LDFLAGS) -o SMPStaticAnalyzer.plx
+	cp SMPStaticAnalyzer.plx ${IDAROOT}/plugins
-- 
GitLab