c-libp2p/Makefile

71 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

DEBUG = true
export DEBUG
2017-10-25 17:28:53 +00:00
LINKER_FLAGS=
2017-02-13 18:26:41 +00:00
OBJS = \
conn/*.o \
crypto/*.o \
crypto/encoding/*.o \
db/*.o \
thirdparty/mbedtls/*.o \
hashmap/hashmap.o \
identify/*.o \
net/*.o \
os/*.o \
2017-02-20 23:53:20 +00:00
peer/*.o \
record/*.o \
routing/*.o \
secio/*.o \
2017-10-11 16:23:25 +00:00
utils/*.o \
swarm/*.o \
2017-10-11 16:23:25 +00:00
yamux/*.o
2016-11-07 21:34:08 +00:00
link:
2017-10-25 17:28:53 +00:00
ar rcs libp2p.a $(OBJS) $(LINKER_FLAGS)
2016-11-07 21:34:08 +00:00
2017-02-13 18:26:41 +00:00
compile:
cd conn; make all;
2016-11-07 21:34:08 +00:00
cd crypto; make all;
cd db; make all;
2016-11-07 21:34:08 +00:00
cd thirdparty; make all;
cd hashmap; make all;
cd identify; make all;
cd net; make all;
cd os; make all;
2017-02-20 23:53:20 +00:00
cd peer; make all;
cd record; make all;
cd routing; make all;
cd secio; make all;
cd swarm; make all;
cd utils; make all;
2017-10-11 16:23:25 +00:00
cd yamux; make all;
2016-11-07 21:34:08 +00:00
test: compile link
2016-11-09 16:22:25 +00:00
cd test; make all;
rebuild: clean all
2016-11-09 16:22:25 +00:00
all: test
2016-11-07 21:34:08 +00:00
clean:
2017-02-13 18:26:41 +00:00
cd conn; make clean;
2016-11-07 21:34:08 +00:00
cd crypto; make clean;
cd db; make clean;
cd hashmap; make clean;
cd identify; make clean;
cd net; make clean;
cd os; make clean;
2017-02-20 23:53:20 +00:00
cd peer; make clean;
2016-11-07 21:34:08 +00:00
cd thirdparty; make clean
cd record; make clean;
cd routing; make clean;
cd secio; make clean;
cd swarm; make clean;
cd utils; make clean;
cd test; make clean;
2017-10-11 16:23:25 +00:00
cd yamux; make clean;
2016-11-07 21:34:08 +00:00
rm -rf libp2p.a