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