c-libp2p/test/Makefile

23 lines
332 B
Makefile
Raw Normal View History

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