2016-12-21 13:08:44 +00: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/ -I../../c-protobuf -g3 -Wall -std=c99
|
2016-12-23 03:51:06 +00:00
|
|
|
LFLAGS = -L../../c-libp2p -L../../c-multihash -L../../c-multiaddr -lp2p -lm -lmultihash -lmultiaddr -lpthread -lresolv
|
2016-12-21 13:08:44 +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
|
|
|
|
OBJS = main.o \
|
|
|
|
../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 \
|
2017-03-09 17:50:08 +00:00
|
|
|
../core/builder.o ../core/daemon.o ../core/null.o ../core/ping.o ../core/bootstrap.o \
|
2016-12-21 13:08:44 +00:00
|
|
|
../datastore/ds_helper.o \
|
2016-12-30 04:18:03 +00:00
|
|
|
../datastore/key.o \
|
2017-02-13 13:56:26 +00:00
|
|
|
../dnslink/*.o \
|
2016-12-21 13:08:44 +00:00
|
|
|
../flatfs/flatfs.o \
|
2016-12-30 00:05:44 +00:00
|
|
|
../importer/importer.o ../importer/exporter.o ../importer/resolver.o \
|
2016-12-23 03:51:06 +00:00
|
|
|
../path/path.o \
|
2016-12-21 13:08:44 +00:00
|
|
|
../merkledag/merkledag.o ../merkledag/node.o \
|
|
|
|
../multibase/multibase.o \
|
2017-02-13 13:56:26 +00:00
|
|
|
../namesys/*.o \
|
2016-12-21 13:08:44 +00:00
|
|
|
../os/utils.o \
|
2016-12-30 04:18:03 +00:00
|
|
|
../pin/pin.o \
|
2016-12-21 13:08:44 +00:00
|
|
|
../repo/init.o \
|
|
|
|
../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/datastore.o ../repo/config/gateway.o \
|
|
|
|
../repo/config/addresses.o ../repo/config/swarm.o ../repo/config/peer.o \
|
2017-02-13 13:53:32 +00:00
|
|
|
../routing/*.o \
|
2016-12-21 13:08:44 +00:00
|
|
|
../thirdparty/ipfsaddr/ipfs_addr.o \
|
|
|
|
../unixfs/unixfs.o \
|
2016-12-30 03:07:44 +00:00
|
|
|
../../c-protobuf/protobuf.o ../../c-protobuf/varint.o \
|
2017-02-14 10:56:07 +00:00
|
|
|
../util/errs.o \
|
2017-03-21 17:58:39 +00:00
|
|
|
../util/time.o \
|
|
|
|
../util/string_tokenizer.o
|
2016-12-21 13:08:44 +00:00
|
|
|
|
|
|
|
%.o: %.c $(DEPS)
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
|
|
|
ipfs: $(OBJS)
|
|
|
|
$(CC) -o $@ $^ $(LFLAGS) ../../lmdb/libraries/liblmdb/liblmdb.a
|
|
|
|
|
|
|
|
all: ipfs
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
2016-12-23 03:51:06 +00:00
|
|
|
rm -f ipfs
|