iperf3-tls/src/Makefile

37 lines
735 B
Makefile
Raw Normal View History

2009-02-24 06:22:58 +00:00
CFLAGS=-g -Wall
2009-11-02 22:43:19 +00:00
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
2009-07-23 18:22:24 +00:00
LDFLAGS=
2009-02-24 06:22:58 +00:00
UNAME=$(shell uname)
ifeq ($(UNAME), Linux)
2009-11-13 19:20:52 +00:00
LDFLAGS= -luuid
endif
2009-02-24 06:22:58 +00:00
all: iperf
iperf: $(OBJS)
2009-11-02 22:43:19 +00:00
$(CC) $(CFLAGS) $(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)
dist:
tar cvfz iperf3.0-alpha.tar.gz *.c *.h *.txt Makefile AUTHORS
2009-07-23 18:22:24 +00:00
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