c-libp2p/Makefile

43 lines
663 B
Makefile
Raw Normal View History

DEBUG = true
export DEBUG
OBJS = crypto/*.o crypto/encoding/*.o \
thirdparty/mbedtls/*.o \
hashmap/hashmap.o \
net/*.o \
record/*.o \
routing/*.o \
secio/*.o
2016-11-07 21:34:08 +00:00
link: $(OBJS)
ar rcs libp2p.a $(OBJS)
2016-11-07 21:34:08 +00:00
2016-11-09 16:22:25 +00:00
compile:
2016-11-07 21:34:08 +00:00
cd crypto; make all;
cd thirdparty; make all;
cd hashmap; make all;
cd net; make all;
cd record; make all;
cd routing; make all;
cd secio; 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:
cd crypto; make clean;
cd hashmap; make clean;
cd net; make clean;
2016-11-07 21:34:08 +00:00
cd thirdparty; make clean
2016-11-09 16:22:25 +00:00
cd test; make clean;
cd record; make clean;
cd routing; make clean;
cd secio; make all;
2016-11-07 21:34:08 +00:00
rm -rf libp2p.a