diff --git a/.gitattributes b/.gitattributes index 15bd6f24083172c464b4db0370360336d364cc60..b52b1af62dd8d4031aa98417ef885e7cca56aa0e 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 0000000000000000000000000000000000000000..b7fb99650f8bc4002a97176f1926d2a1265b760a --- /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