2016-10-27 01:14:07 +00:00
|
|
|
CC = gcc
|
2017-08-24 15:08:27 +00:00
|
|
|
CFLAGS = -O0 -I../include -I../../c-libp2p/include -I../../c-multihash/include -I../../c-multiaddr/include -I../../c-protobuf -I../../lmdb/libraries/liblmdb -g3 -Wall -std=c99
|
2017-09-21 23:03:42 +00:00
|
|
|
LFLAGS = -L../../c-libp2p -L../../c-multihash -L../../c-multiaddr -lp2p -lm -lmultihash -lmultiaddr -lpthread -lcurl
|
2016-11-14 02:01:51 +00:00
|
|
|
DEPS = cmd/ipfs/test_init.h repo/test_repo_bootstrap_peers.h repo/test_repo_config.h repo/test_repo_identity.h cid/test_cid.h
|
2016-12-05 18:11:22 +00:00
|
|
|
OBJS = testit.o test_helper.o \
|
2016-12-05 15:50:17 +00:00
|
|
|
../blocks/block.o ../blocks/blockstore.o \
|
|
|
|
../cid/cid.o \
|
2017-09-21 20:27:16 +00:00
|
|
|
../cmd/cli.o \
|
2016-12-05 15:50:17 +00:00
|
|
|
../cmd/ipfs/init.o \
|
|
|
|
../commands/argument.o ../commands/command_option.o ../commands/command.o ../commands/cli/parse.o \
|
2017-09-13 10:02:59 +00:00
|
|
|
../core/*.o \
|
2016-12-05 15:50:17 +00:00
|
|
|
../datastore/ds_helper.o \
|
2017-07-20 20:03:49 +00:00
|
|
|
../exchange/bitswap/*.o \
|
2016-12-05 15:50:17 +00:00
|
|
|
../flatfs/flatfs.o \
|
2016-12-30 00:05:44 +00:00
|
|
|
../importer/importer.o ../importer/exporter.o ../importer/resolver.o \
|
2017-08-24 15:08:27 +00:00
|
|
|
../journal/*.o \
|
2016-12-19 14:03:28 +00:00
|
|
|
../merkledag/merkledag.o ../merkledag/node.o \
|
2016-12-05 15:50:17 +00:00
|
|
|
../multibase/multibase.o \
|
2017-09-14 21:49:19 +00:00
|
|
|
../namesys/pb.o \
|
|
|
|
../namesys/publisher.o \
|
2017-09-21 18:59:06 +00:00
|
|
|
../namesys/resolver.o \
|
2017-09-21 20:27:16 +00:00
|
|
|
../namesys/name.o \
|
2016-12-21 13:08:44 +00:00
|
|
|
../repo/init.o \
|
2017-08-21 19:49:21 +00:00
|
|
|
../repo/fsrepo/*.o \
|
2017-07-20 14:12:31 +00:00
|
|
|
../repo/config/*.o \
|
2017-02-27 17:27:40 +00:00
|
|
|
../routing/offline.o \
|
|
|
|
../routing/online.o \
|
2017-03-09 23:47:27 +00:00
|
|
|
../routing/k_routing.o \
|
2017-03-19 13:05:25 +00:00
|
|
|
../routing/supernode.o \
|
2016-12-12 11:27:06 +00:00
|
|
|
../thirdparty/ipfsaddr/ipfs_addr.o \
|
2016-12-19 19:19:43 +00:00
|
|
|
../unixfs/unixfs.o \
|
2017-04-17 19:02:33 +00:00
|
|
|
../util/thread_pool.o \
|
2016-12-12 11:27:06 +00:00
|
|
|
../../c-protobuf/protobuf.o ../../c-protobuf/varint.o
|
2016-10-27 01:14:07 +00:00
|
|
|
|
|
|
|
%.o: %.c $(DEPS)
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
2016-11-10 13:28:51 +00:00
|
|
|
test_ipfs: $(OBJS)
|
2016-11-17 20:07:59 +00:00
|
|
|
$(CC) -o $@ $^ $(LFLAGS) ../../lmdb/libraries/liblmdb/liblmdb.a
|
2016-10-27 01:14:07 +00:00
|
|
|
|
2016-11-10 13:28:51 +00:00
|
|
|
all: test_ipfs
|
2016-10-27 01:14:07 +00:00
|
|
|
|
|
|
|
clean:
|
2016-10-27 01:16:25 +00:00
|
|
|
rm -f *.o
|
2017-03-21 15:20:52 +00:00
|
|
|
rm -f test_ipfs
|