CFLAGS=-g -Wall -D_BSD_EXTENSION OBJS=main.o iperf_api.o iperf_server_api.o iperf_tcp.o iperf_udp.o timer.o net.o tcp_window_size.o units.o uuid.o tcp_info.o locale.o getopt.o LDFLAGS= UNAME=$(shell uname) #ifeq ($(UNAME), Linux) #LDFLAGS= -luuid #endif all: iperf iperf: $(OBJS) $(CC) $(CFLAGS) $(LDFLAGS) -o iperf3 $(OBJS) profile: iperf $(CC) -pg -o iperf-profile $(OBJS) dist: make clean ; cd .. ; tar cvfz iperf3.0a3.tar.gz iperf3 --exclude .svn; cd iperf3 test: t_timer t_units t_uuid ./t_timer ./t_units ./t_uuid t_timer: timer.o t_timer.o $(CC) -o t_timer timer.o t_timer.o t_units: units.o t_units.o $(CC) -o t_units units.o t_units.o t_uuid: uuid.o t_uuid.o $(CC) -o t_uuid uuid.o t_uuid.o clean: rm -f *.o iperf iperf-profile t_timer t_units t_uuid *.gz iperf3 *.BAK *~