1all: tests 2 3lrt:=$(shell echo "int main() {}"|gcc -x c - -lrt 2>&1) 4 5ifeq ($(lrt),) 6 libs:=-lrt 7else 8 libs:= 9endif 10 11utp:=../libutp.a 12cflags:=-fno-exceptions -fno-rtti 13 14tests: test_transfer.cpp 15 g++ -Wall -o tests -g test_transfer.cpp $(utp) -DPOSIX -I . -I .. -I ../utp_config_lib $(libs) $(cflags) 16