# makefile for gnu make, using msvc compiler, # needs environment setup with 'vcvars32.bat' ( from vstudio ) # .SUFFIXES: .SUFFIXES: .cpp .obj .ldw #C4514: 'uint128::uint128' : unreferenced inline function has been removed #C4710: function 'int __stdcall getreg(unsigned long,int)' not inlined #C4244: '+=' : conversion from 'int' to 'unsigned short', possible loss of data #C4242: '=' : conversion from 'int' to 'ushort', possible loss of data #C4127: conditional expression is constant #C4146: unary minus operator applied to unsigned type, result still unsigned #C4820: '__stat64' : '4' bytes padding added after member '__stat64::st_rdev' #C4217: member template functions cannot be used for copy-assignment or copy-construction #C4668: '_MT' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' #C4619: #pragma warning : there is no warning number '4284' %.obj: %.cpp CL -GX -Wall -wd4619 -wd4514 -wd4710 -wd4244 -wd4242 -wd4127 -wd4668 -wd4146 -wd4820 -wd4217 -c -MT -Gz -GX -I ..\..\INCLUDE -DWIN32 -D_USRDLL -D__NT__ -D__IDP__ -DMAXSTR=1024 -D_MBCS -Fo$@ $< xip.ldw: xip.obj xip_handlers.obj nbf_loader.obj LINK /nologo /dll $^ /out:$@ /stub:..\stub /export:LDSC /libpath:..\..\LIBVC.W32 ..\..\LIBVC.W32\ida.lib # /base:0x14000000 /section:.edata,d /section:.data,rw #../../BIN/W32/PEUTIL.EXE -ne -dc:\local\ida\idasdk\BIN\W32\ida.imp $@ #../../BIN/W32/PEUTIL.EXE -dldr.def $@ xip.obj: xip.cpp xip_handlers.obj: xip_handlers.cpp nbf_loader.obj: nbf_loader.cpp clean: rm *.obj *.ldw