fixed a bug. tcp_listener_create was called incorrectly by microtcp_open
This commit is contained in:
@@ -59,7 +59,7 @@ endif
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: build/microtcp.h build/microtcp.c build/echo_tcp build/echo_http
|
||||
all: build/microtcp.h build/microtcp.c build/echo_tcp build/echo_http build/test
|
||||
|
||||
3p/lib/libtuntap.a: 3p/libtuntap/build/lib/libtuntap.a
|
||||
cp 3p/libtuntap/build/lib/libtuntap.a $(LIBDIR)
|
||||
@@ -139,7 +139,15 @@ build/microtcp.c: 3p/include/tinycthread.h 3p/src/tinycthread.c $(wildcard src/*
|
||||
build/echo_http: examples/microhttp/main.c $(LIBDIR)/libtuntap.a 3p/include/tuntap.h 3p/include/tuntap-export.h build/microtcp.h build/microtcp.c
|
||||
gcc examples/microhttp/main.c examples/microhttp/xhttp.c build/microtcp.c -o $@ $(CFLAGS) $(LFLAGS) -DDEBUG=1 -DARP_DEBUG -DMICROTCP_DEBUG -DIP_DEBUG -DICMP_DEBUG -DTCP_DEBUG -DMICROTCP_USING_MUX
|
||||
|
||||
build/test: tests/test.c tests/test_tcp_timer.c src/tcp_timer.c src/tcp_timer.h
|
||||
gcc -fprofile-arcs -ftest-coverage tests/test.c tests/test_tcp_timer.c src/tcp_timer.c -o $@ -Wall -Wextra -DTCP_MAX_TIMERS=4
|
||||
|
||||
report: build/test
|
||||
./build/test
|
||||
gcov -b build/test-tcp_timer.c
|
||||
|
||||
clean:
|
||||
rm build/*.gcda build/*.gcno
|
||||
rm -fr build
|
||||
rm -fr 3p/libtuntap/build
|
||||
rm -f 3p/lib/* 3p/include/*
|
||||
Reference in New Issue
Block a user