iperf3-tls/src/Makefile

34 lines
614 B
Makefile
Raw Normal View History

2009-02-24 06:22:58 +00:00
CFLAGS=-g -Wall
OBJS=iperf_api.o timer.o net.o tcp_window_size.o units.o uuid.o tcp_info.o locale.o
2009-07-23 18:22:24 +00:00
LDFLAGS=
2009-02-24 06:22:58 +00:00
UNAME=$(shell uname)
ifeq ($(UNAME), Linux)
LDFLAGS=$(LDFLAGS) -luuid
endif
2009-02-24 06:22:58 +00:00
all: iperf
iperf: $(OBJS)
$(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
./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
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 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