c-ipfs/test/Makefile

19 lines
467 B
Makefile
Raw Normal View History

2016-10-26 20:14:07 -05:00
CC = gcc
CFLAGS = -O0
LFLAGS =
DEPS = testit.h repo/test_repo.h cmd/ipfs/test_init.h
2016-10-27 13:11:34 -05: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 \
../repo/fsrepo/fs_repo.o ../repo//config/config.o ../os/utils.o
2016-10-26 20:14:07 -05:00
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
testit: $(OBJS)
$(CC) -o $@ $^ $(LFLAGS)
all: testit
clean:
2016-10-26 20:16:25 -05:00
rm -f *.o
rm -f testit