2016-10-27 01:14:07 +00:00
|
|
|
CC = gcc
|
2016-12-05 11:54:21 +00:00
|
|
|
CFLAGS = -O0 -I../include -I../../c-libp2p/include -I../../c-multihash/include -I../../c-multiaddr/ -g3 -Wall
|
2016-11-17 20:07:59 +00:00
|
|
|
LFLAGS = -L../../c-libp2p -L../../c-multihash -L../../c-multiaddr -lp2p -lm -lmultihash -lmultiaddr -lpthread
|
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-10-27 18:11:34 +00:00
|
|
|
OBJS = testit.o ../cmd/ipfs/init.o ../commands/argument.o ../commands/command_option.o \
|
|
|
|
../commands/command.o ../commands/cli/parse.o ../core/builder.o ../repo/fsrepo/fs_repo.o \
|
2016-11-17 20:07:59 +00:00
|
|
|
../repo/fsrepo/jsmn.o ../repo/fsrepo/lmdb_datastore.o ../repo/config/config.o ../os/utils.o ../repo/config/identity.o \
|
2016-11-07 21:29:30 +00:00
|
|
|
../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 \
|
2016-11-28 13:09:00 +00:00
|
|
|
../thirdparty/ipfsaddr/ipfs_addr.o ../cid/cid.o ../multibase/multibase.o \
|
2016-11-30 16:46:41 +00:00
|
|
|
../flatfs/flatfs.o ../blocks/block.o ../blocks/blockstore.o \
|
|
|
|
../datastore/ds_helper.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
|
2016-11-10 13:28:51 +00:00
|
|
|
rm -f test_ipfs
|