c-ipfs/main/Makefile

46 lines
1.4 KiB
Makefile
Raw Permalink Normal View History

CC = gcc
2019-01-02 17:01:30 +00:00
CFLAGS = -O0 -I../include -I../c-libp2p/include -I../c-libp2p/c-multihash/include -I../c-libp2p/c-multiaddr/include -I../c-libp2p/c-protobuf -g3 -Wall -std=gnu99
LFLAGS = -L../c-libp2p -L../c-libp2p/c-multihash -L../c-libp2p/c-multiaddr -lp2p -lm -lmultihash -lmultiaddr -lpthread -lresolv -lcurl
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 \
../cmd/*.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 \
../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 \
../exchange/bitswap/*.o \
../flatfs/flatfs.o \
../importer/importer.o ../importer/exporter.o ../importer/resolver.o \
2017-08-24 15:08:27 +00:00
../journal/*.o \
2016-12-23 03:51:06 +00:00
../path/path.o \
../merkledag/merkledag.o ../merkledag/node.o \
../multibase/multibase.o \
2017-02-13 13:56:26 +00:00
../namesys/*.o \
2016-12-30 04:18:03 +00:00
../pin/pin.o \
../repo/init.o \
../repo/fsrepo/*.o \
../repo/config/*.o \
2017-02-13 13:53:32 +00:00
../routing/*.o \
../thirdparty/ipfsaddr/ipfs_addr.o \
../unixfs/unixfs.o \
../c-libp2p/c-protobuf/protobuf.o ../c-libp2p/c-protobuf/varint.o \
../util/errs.o \
../util/time.o \
../util/thread_pool.o
%.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