c-libp2p/test/Makefile

28 lines
604 B
Makefile
Raw Normal View History

2016-11-09 16:22:25 +00:00
CC = gcc
2017-02-13 18:26:41 +00:00
CFLAGS = -O0 -I../include -I. -I../../c-multihash/include -I../../c-multiaddr/include
ifdef DEBUG
CFLAGS += -g3
endif
LFLAGS = -L../ -L../../c-multihash
DEPS = crypto/test_base58.h crypto/test_rsa.h test_mbedtls.h
OBJS = testit.o ../../c-protobuf/protobuf.o ../../c-protobuf/varint.o ../libp2p.a
2016-11-09 16:22:25 +00:00
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
2016-11-10 17:04:48 +00:00
testit_libp2p: $(OBJS) $(DEPS)
$(CC) -o $@ $(OBJS) $(LFLAGS) -lp2p -lm -lmultihash
2016-11-09 16:22:25 +00:00
all_others:
cd ../crypto; make all;
cd ../thirdparty; make all;
all: all_others testit_libp2p
2016-11-09 16:22:25 +00:00
clean:
rm -f *.o
rm -f testit_libp2p
2016-12-01 18:05:14 +00:00
test: clean testit_libp2p