diff options
| author | Andrew Lamoureux <andrew@vector35.com> | 2017-03-15 18:13:07 -0400 |
|---|---|---|
| committer | Andrew Lamoureux <andrew@vector35.com> | 2017-03-15 18:13:07 -0400 |
| commit | 1f7523ce2b1edac1014d781fc771d5b82568e2f1 (patch) | |
| tree | e9595f3a8683461bc0c1e452788183fd7462c4a8 /Makefile.win | |
| parent | 84357311117be3002bc3dd0e402ca32eb81d4cf0 (diff) | |
build explanation, windows make files
Diffstat (limited to 'Makefile.win')
| -rw-r--r-- | Makefile.win | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile.win b/Makefile.win new file mode 100644 index 00000000..ea95ba7b --- /dev/null +++ b/Makefile.win @@ -0,0 +1,23 @@ +CFLAGS = /EHsc /DWIN32 + +TARGETDIR = bin +TARGETNAME = libbinaryninjaapi.lib +TARGET = .\$(TARGETDIR)\$(TARGETNAME) + +OBJS = architecture.obj backgroundtask.obj basicblock.obj binaryninjaapi.obj binaryreader.obj binaryview.obj binaryviewtype.obj binarywriter.obj callingconvention.obj databuffer.obj demangle.obj fileaccessor.obj filemetadata.obj function.obj functiongraph.obj functiongraphblock.obj functionrecognizer.obj interaction.obj log.obj lowlevelil.obj mainthread.obj platform.obj plugin.obj scriptingprovider.obj tempfile.obj transform.obj type.obj update.obj jsoncpp.obj + +$(TARGET): $(OBJS) + if not exist $(TARGETDIR) mkdir $(TARGETDIR) + lib $(OBJS) /OUT:$(TARGET) + +jsoncpp.obj: json\jsoncpp.cpp + cl $(CFLAGS) /I. /c json\jsoncpp.cpp + +# nmake "inference rules" are gnu make "pattern rules" +.cpp.obj: + cl $(CFLAGS) /c $< + +clean: + if exist *.obj del *.obj + if exist $(TARGETDIR) del /Q /S $(TARGETDIR) + |
