c-ipfs/test/Makefile

44 lines
1.6 KiB
Makefile
Raw Normal View History

2016-10-26 20:14:07 -05:00
CC = gcc
2017-03-21 15:20:52 +00:00
CFLAGS = -O0 -I../include -I../../c-libp2p/include -I../../c-multihash/include -I../../c-multiaddr/include -I../../c-protobuf -g3 -Wall -std=c99
LFLAGS = -L../../c-libp2p -L../../c-multihash -L../../c-multiaddr -lp2p -lm -lmultihash -lmultiaddr -lpthread
2016-11-13 21:01:51 -05: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 13:11:22 -05:00
OBJS = testit.o test_helper.o \
2016-12-05 10:50:17 -05:00
../blocks/block.o ../blocks/blockstore.o \
../cid/cid.o \
../cmd/ipfs/init.o \
../commands/argument.o ../commands/command_option.o ../commands/command.o ../commands/cli/parse.o \
../core/builder.o \
2017-02-27 12:27:40 -05:00
../core/daemon.o \
../core/null.o \
2017-03-09 12:50:08 -05:00
../core/bootstrap.o \
2017-04-03 11:55:36 -05:00
../core/ping.o \
2016-12-05 10:50:17 -05:00
../datastore/ds_helper.o \
../flatfs/flatfs.o \
../importer/importer.o ../importer/exporter.o ../importer/resolver.o \
2016-12-19 09:03:28 -05:00
../merkledag/merkledag.o ../merkledag/node.o \
2016-12-05 10:50:17 -05:00
../multibase/multibase.o \
../repo/init.o \
2016-12-05 10:50:17 -05:00
../repo/fsrepo/fs_repo.o ../repo/fsrepo/jsmn.o ../repo/fsrepo/lmdb_datastore.o \
../repo/config/config.o ../repo/config/identity.o \
../repo/config/bootstrap_peers.o ../repo/config/gateway.o \
2016-11-07 16:29:30 -05:00
../repo/config/addresses.o ../repo/config/swarm.o ../repo/config/peer.o \
2017-02-27 12:27:40 -05:00
../routing/offline.o \
../routing/online.o \
../routing/k_routing.o \
2017-03-19 08:05:25 -05:00
../routing/supernode.o \
2016-12-12 06:27:06 -05:00
../thirdparty/ipfsaddr/ipfs_addr.o \
2016-12-19 14:19:43 -05:00
../unixfs/unixfs.o \
2016-12-12 06:27:06 -05:00
../../c-protobuf/protobuf.o ../../c-protobuf/varint.o
2016-10-26 20:14:07 -05:00
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
test_ipfs: $(OBJS)
$(CC) -o $@ $^ $(LFLAGS) ../../lmdb/libraries/liblmdb/liblmdb.a
2016-10-26 20:14:07 -05:00
all: test_ipfs
2016-10-26 20:14:07 -05:00
clean:
2016-10-26 20:16:25 -05:00
rm -f *.o
2017-03-21 15:20:52 +00:00
rm -f test_ipfs