imm funcs
[ia32rtools.git] / ida / saveasm / Makefile
CommitLineData
fc1c61f5 1CROSS_COMPILE = i586-mingw32msvc-
d8891fcc 2CC = $(CROSS_COMPILE)gcc
3CXX = $(CROSS_COMPILE)g++
3682b4b1 4IDASDK = $(wildcard ../idasdk*)
d8891fcc 5
97609f07 6CFLAGS += -Wall -Wno-sign-compare -fno-strict-aliasing
d8891fcc 7CFLAGS += -I$(IDASDK)/include/ -D__IDP__ -D__PLUGIN__ -D__NT__
8LDLIBS += $(IDASDK)/lib/x86_win_gcc_32/ida.a
97609f07 9ifndef DEBUG
10CFLAGS += -O2
11endif
d8891fcc 12
13all: saveasm.plw
14
15%.plw: %.cpp
16 $(CXX) -shared -o $@ $(CFLAGS) $^ $(LDFLAGS) $(LDLIBS)
17
18clean:
19 $(RM) saveasm.plw