summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lamoureux <andrew@vector35.com>2017-03-24 16:32:50 -0400
committerAndrew Lamoureux <andrew@vector35.com>2017-03-24 16:32:50 -0400
commitc4f968cad46c51a307396ee4f21f60aa51393fe4 (patch)
tree57a32d29ec9931175648947b35c62748077f23cf
parent435e937c9705bc71cf1e7da1e08b23345a131360 (diff)
ensure jsoncpp is in libbinaryninjaapi.lib for make
(this was already the case for cmake builds)
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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)