22 lines
No EOL
824 B
Makefile
22 lines
No EOL
824 B
Makefile
CC = gcc
|
|
CFLAGS = -O0 -I../include -I../../c-libp2p/include -g3
|
|
LFLAGS = -L../../c-libp2p -lp2p
|
|
DEPS = cmd/ipfs/test_init.h repo/test_repo_bootstrap_peers.h repo/test_repo_config.h repo/test_repo_identity.h
|
|
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 \
|
|
../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
|
|
|
|
%.o: %.c $(DEPS)
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
test_ipfs: $(OBJS)
|
|
$(CC) -o $@ $^ $(LFLAGS)
|
|
|
|
all: test_ipfs
|
|
|
|
clean:
|
|
rm -f *.o
|
|
rm -f test_ipfs
|