1 CROSS_COMPILE ?= i586-mingw32msvc-
2 CC = $(CROSS_COMPILE)gcc
3 CXX = $(CROSS_COMPILE)g++
4 IDASDK = $(wildcard idasdk*)
6 CFLAGS += -Wall -Wno-sign-compare
7 CFLAGS += -I$(IDASDK)/include/ -D__IDP__ -D__PLUGIN__ -D__NT__
8 LDLIBS += $(IDASDK)/lib/x86_win_gcc_32/ida.a
13 $(CXX) -shared -o $@ $(CFLAGS) $^ $(LDFLAGS) $(LDLIBS)