summaryrefslogtreecommitdiff
path: root/Makefile.win
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2017-03-24 11:20:39 -0400
committerPeter LaFosse <peter@vector35.com>2017-03-24 11:20:39 -0400
commit435e937c9705bc71cf1e7da1e08b23345a131360 (patch)
tree5a4d729acb0404c4c4059f0c7e8aa7c22136b649 /Makefile.win
parent1e8e975ed8100c7a6186e8b27833a067ceaf05be (diff)
parentddaf7506e1802cfd4f9c78bcfb14deb0180b04d8 (diff)
Merge branch 'dev' into staging
Diffstat (limited to 'Makefile.win')
-rw-r--r--Makefile.win23
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)
+