Commit | Line | Data |
---|---|---|
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 -fno-strict-aliasing | |
7 | CFLAGS += -I$(IDASDK)/include/ -D__IDP__ -D__PLUGIN__ -D__NT__ | |
8 | LDLIBS += $(IDASDK)/lib/x86_win_gcc_32/ida.a | |
9 | ifndef DEBUG | |
10 | CFLAGS += -O2 | |
11 | endif | |
12 | ||
13 | all: saveasm.plw | |
14 | ||
15 | %.plw: %.cpp | |
16 | $(CXX) -shared -o $@ $(CFLAGS) $^ $(LDFLAGS) $(LDLIBS) | |
17 | ||
18 | clean: | |
19 | $(RM) saveasm.plw |