summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)