c-libp2p/Makefile

43 lines
772 B
Makefile
Raw Normal View History

COMPONENTS = conn crypto db thirdparty hashmap identify net os peer record routing secio swarm utils yamux
DEBUG = true
export DEBUG
ROOT= $(shell pwd)
export INCLUDE = -I$(ROOT)/include -I$(ROOT)/c-protobuf -I$(ROOT)/c-multihash/include -I$(ROOT)/c-multiaddr/include
2017-10-25 17:28:53 +00:00
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: compile
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:
$(foreach dir,$(COMPONENTS), $(MAKE) -C $(dir) all ;)
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:
$(foreach dir,$(COMPONENTS), $(MAKE) -C $(dir) clean ;)