2009-02-24 06:22:58 +00:00
|
|
|
CFLAGS=-g -Wall
|
2009-07-23 18:22:24 +00:00
|
|
|
OBJS=iperf_api.o timer.o net.o tcp_window_size.o units.o uuid.o
|
|
|
|
LDFLAGS=
|
2009-02-24 06:22:58 +00:00
|
|
|
|
2009-07-24 21:06:16 +00:00
|
|
|
UNAME=$(shell uname)
|
|
|
|
ifeq ($(UNAME), Linux)
|
|
|
|
LDFLAGS=$(LDFLAGS) -luuid
|
|
|
|
endif
|
|
|
|
|
2009-02-24 06:22:58 +00:00
|
|
|
all: iperf
|
|
|
|
|
|
|
|
iperf: $(OBJS)
|
2009-10-20 03:33:50 +00:00
|
|
|
$(CC) $(LDFLAGS) -o iperf3 $(OBJS)
|
2009-02-24 06:22:58 +00:00
|
|
|
|
2009-07-23 18:22:24 +00:00
|
|
|
profile: iperf
|
|
|
|
$(CC) -pg -o iperf-profile $(OBJS)
|
|
|
|
|
|
|
|
test: t_timer t_units t_uuid
|
2009-02-24 06:22:58 +00:00
|
|
|
./t_timer
|
2009-02-24 08:05:14 +00:00
|
|
|
./t_units
|
2009-07-23 18:22:24 +00:00
|
|
|
./t_uuid
|
2009-02-24 06:22:58 +00:00
|
|
|
|
|
|
|
t_timer: timer.o t_timer.o
|
|
|
|
$(CC) -o t_timer timer.o t_timer.o
|
|
|
|
|
2009-02-24 08:05:14 +00:00
|
|
|
t_units: units.o t_units.o
|
|
|
|
$(CC) -o t_units units.o t_units.o
|
|
|
|
|
2009-07-23 18:22:24 +00:00
|
|
|
t_uuid: uuid.o t_uuid.o
|
|
|
|
$(CC) -o t_uuid uuid.o t_uuid.o
|
2009-02-24 08:05:14 +00:00
|
|
|
|
2009-02-24 06:22:58 +00:00
|
|
|
clean:
|
2009-07-23 18:22:24 +00:00
|
|
|
rm -f *.o iperf iperf-profile t_timer t_units t_uuid
|