# Makefile for IDA Pro Plugins under Linux # Updated version of makefile from Steve Micallef's # IDA Plugin Writing Tutorial # http://www.binarypool.com/idapluginwriting/ # Set your plugin name here. PLUGINNAME.plx PLUGINNAME=myplugin # Set your IDA install directory IDABASEDIR=/usr/local/idaadv # Set your IDA SDK directory SDKBASEDIR=/usr/local/idaadv/sdk # Compiles all cpp files in current dir SRC=$(wildcard *.cpp) OBJS=$(SRC:.cpp=.o) CC=g++ LD=g++ CFLAGS=-D__IDP__ -D__PLUGIN__ -c -D__LINUX__ \ -I$(SDKBASEDIR)/include $(SRC) LDFLAGS=--shared $(OBJS) -L$(IDABASEDIR) -lida --no-undefined \ -Wl,--version-script=$(SDKBASEDIR)/plugins/plugin.script all: $(CC) $(CFLAGS) $(LD) $(LDFLAGS) -o $(PLUGINNAME).plx install: cp $(PLUGINNAME).plx $(IDABASEDIR)/plugins clean: -rm -f *.plx *.o core rebuild: clean all