ports/net/brutecopy/files/patch-makefile
Pav Lucistnik 1454562dcc Add brutecopy, an application that pushes data using UDP protocol through rotten,
overloaded and otherwise disgusting lines. It should work well even on lines
on which TCP completely chokes. The transmission is performed at
user-preprogrammed fixed data rate with no flow control, only with lost-packet
retransmits. Brutalcopy always transfers the file without error, even on
erroneous lines. It uses a CRC-32 checksum algorithm together with the checksum
in the UDP packets.

PR:		ports/76239
Submitted by:	Radim Kolar <hsn@netmag.cz>
2005-01-15 17:23:23 +00:00

32 lines
807 B
Text

--- Makefile.orig Sat Dec 29 15:03:13 2001
+++ Makefile Tue Jan 11 18:55:19 2005
@@ -1,5 +1,4 @@
-CFLAGS= -O3 -Wall -fomit-frame-pointer -malign-functions=0
-LDFLAGS= -s
+CFLAGS?=-O3 -Wall -fomit-frame-pointer -falign-functions=0
all: bcps bcpc
@@ -7,18 +6,18 @@
rm -f *.o bcps bcpc
bcps.o: bcps.c def.h crc32.c
- gcc -c $(CFLAGS) bcps.c -o bcps.o
+ $(CC) -c $(CFLAGS) bcps.c -o bcps.o
bcpc.o: bcpc.c def.h crc32.c
- gcc -c $(CFLAGS) bcpc.c -o bcpc.o
+ $(CC) -c $(CFLAGS) bcpc.c -o bcpc.o
crc32.o: crc32.c
bcps: bcps.o crc32.o
- gcc $(LDFLAGS) bcps.o crc32.o -o bcps
+ $(CC) $(LDFLAGS) bcps.o crc32.o -o bcps
bcpc: bcpc.o crc32.o
- gcc $(LDFLAGS) bcpc.o crc32.o -o bcpc
+ $(CC) $(LDFLAGS) bcpc.o crc32.o -o bcpc
install: all
install -o root -g root -m 755 bcpc $(DESTDIR)/usr/bin