kill 'assume cs'
[ia32rtools.git] / plugin / Makefile
1 CROSS_COMPILE ?= i586-mingw32msvc-
2 CC = $(CROSS_COMPILE)gcc
3 CXX = $(CROSS_COMPILE)g++
4 IDASDK = $(wildcard idasdk*)
5
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
9
10 all: saveasm.plw
11
12 %.plw: %.cpp
13         $(CXX) -shared -o $@ $(CFLAGS) $^ $(LDFLAGS) $(LDLIBS)
14
15 clean:
16         $(RM) saveasm.plw