Commit 90e1266a authored by Jordan Sissel's avatar Jordan Sissel

- compile to build/

parent a7c2632a
LDFLAGS=-Lbuild/lib -lzmq -rpath $$ORIGIN/build/lib
default: lumberjack
default: build/bin/lumberjack
include Makefile.ext
unixsock.c: build/include/insist.h
lumberjack.c: build/include/insist.h backoff.h build/include/zeromq.h
-rm -fr lumberjack unixsock *.o build
rpm deb:
fpm -s dir -t $@ -n lumberjack -v $(VERSION) --prefix /opt/lumberjack \
bin/lumberjack build/lib
lumberjack: lumberjack.o backoff.o build/lib/libzmq.$(LIBEXT)
#unixsock.c: build/include/insist.h
backoff.c: backoff.h
harvester.c: harvester.h
lumberjack.c: build/include/insist.h build/include/zeromq.h
lumberjack.c: backoff.h harvester.h
build/bin/lumberjack: | build/bin build/lib/libzmq.$(LIBEXT)
build/bin/lumberjack: lumberjack.o backoff.o harvester.o
$(CC) -o $@ $^
build/include/insist.h: | build/include
curl -s -o $@
......@@ -22,5 +36,5 @@ build:
build/include: | build
mkdir $@
-rm -fr lumberjack unixsock *.o build
build/bin: | 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