2016-11-09 16:22:25 +00:00
|
|
|
CC = gcc
|
2016-11-10 13:08:22 +00:00
|
|
|
CFLAGS = -O0 -I../include -I.
|
|
|
|
|
|
|
|
ifdef DEBUG
|
|
|
|
CFLAGS += -g3
|
|
|
|
endif
|
|
|
|
|
2016-11-09 16:22:25 +00:00
|
|
|
LFLAGS = -L../
|
|
|
|
DEPS = crypto/test_base58.h crypto/test_mbedtls.h crypto/test_rsa.h
|
|
|
|
OBJS = testit.o
|
|
|
|
|
|
|
|
%.o: %.c $(DEPS)
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
|
|
|
testit_libp2p: $(OBJS)
|
|
|
|
$(CC) -o $@ $(OBJS) $(LFLAGS) -lp2p -lm
|
|
|
|
|
|
|
|
all: testit_libp2p
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
2016-11-10 13:08:22 +00:00
|
|
|
rm -f testit_libp2p
|