Commit b20cd21c authored by Jordan Sissel's avatar Jordan Sissel

Use jansson instead of msgpack

parent 02c7da81
CFLAGS+=-Ibuild/include -std=c99 -Wall -Wextra -Werror -pipe -g
LDFLAGS+=-Lbuild/lib -Wl,-rpath,'$$ORIGIN/../lib'
LIBS=-lzmq -lmsgpack
LIBS=-lzmq -ljansson
......@@ -13,7 +12,7 @@ include Makefile.ext
-rm -fr lumberjack unixsock *.o build
-make -C vendor/msgpack/ clean
-#make -C vendor/jansson/ clean
-make -C vendor/zeromq/ clean
rpm deb:
......@@ -28,10 +27,10 @@ rpm deb:
backoff.c: backoff.h
harvester.c: harvester.h
emitter.c: emitter.h
lumberjack.c: build/include/insist.h build/include/zeromq.h build/include/msgpack.h
lumberjack.c: build/include/insist.h build/include/zeromq.h build/include/jansson.h
lumberjack.c: backoff.h harvester.h emitter.h
build/bin/lumberjack: | build/bin build/lib/libzmq.$(LIBEXT) build/lib/libmsgpack.$(LIBEXT)
build/bin/lumberjack: | build/bin build/lib/libzmq.$(LIBEXT) build/lib/libjansson.$(LIBEXT)
build/bin/lumberjack: lumberjack.o backoff.o harvester.o emitter.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
@echo " => Build complete: $@"
......@@ -44,8 +43,11 @@ build/include/insist.h: | build/include
build/include/zeromq.h build/lib/libzmq.$(LIBEXT): | build
$(MAKE) -C vendor/zeromq/ install PREFIX=$$PWD/build
build/include/msgpack.h build/lib/libmsgpack.$(LIBEXT): | build
$(MAKE) -C vendor/msgpack/ install PREFIX=$$PWD/build
#build/include/msgpack.h build/lib/libmsgpack.$(LIBEXT): | build
# $(MAKE) -C vendor/msgpack/ install PREFIX=$$PWD/build
build/include/jansson.h build/lib/libjansson.$(LIBEXT): | build
$(MAKE) -C vendor/jansson/ install PREFIX=$$PWD/build
mkdir $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment