From c4f968cad46c51a307396ee4f21f60aa51393fe4 Mon Sep 17 00:00:00 2001 From: Andrew Lamoureux Date: Fri, 24 Mar 2017 16:32:50 -0400 Subject: ensure jsoncpp is in libbinaryninjaapi.lib for make (this was already the case for cmake builds) --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0b18c061..23414c45 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ TARGET := $(TARGETDIR)/$(TARGETNAME) SRCEXT = .cpp SOURCES = $(wildcard *$(SRCEXT)) -OBJECTS = $(SOURCES:.cpp=.o) +OBJECTS = $(SOURCES:.cpp=.o) json.o CFLAGS := -c -fPIC -O2 -pipe -std=gnu++11 -Wall -W @@ -35,6 +35,9 @@ $(TARGET).a: $(OBJECTS) @echo " Compiling... $@ $<" $(CC) $(CFLAGS) $(INC) -c -o $@ $< +json.o: ./json/jsoncpp.cpp ./json/json.h ./json/json-forwards.h + $(CC) $(CFLAGS) -I. -c -o $@ $< + clean: @echo " Cleaning..."; $(RM) -r *.o $(TARGETDIR) -- cgit v1.3.1