2016-10-27 01:14:07 +00:00
|
|
|
CC = gcc
|
2016-11-07 21:29:30 +00:00
|
|
|
CFLAGS = -O0 -I../include -I../../c-libp2p/include -g3
|
|
|
|
LFLAGS = -L../../c-libp2p -lp2p
|
|
|
|
DEPS =
|
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-07 21:29:30 +00:00
|
|
|
../repo/fsrepo/fs_repo.o ../repo//config/config.o ../os/utils.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 \
|
|
|
|
../thirdparty/ipfsaddr/ipfs_addr.o
|
2016-10-27 01:14:07 +00:00
|
|
|
|
|
|
|
%.o: %.c $(DEPS)
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
|
|
|
testit: $(OBJS)
|
|
|
|
$(CC) -o $@ $^ $(LFLAGS)
|
|
|
|
|
|
|
|
all: testit
|
|
|
|
|
|
|
|
clean:
|
2016-10-27 01:16:25 +00:00
|
|
|
rm -f *.o
|
|
|
|
rm -f testit
|