Files
Ryan Schmidt d29adb931d ttcp: Fix implicit declaration of functions
Fix implicit declaration of functions that prevented building with Xcode
12 and later.

Closes: https://trac.macports.org/ticket/62861

Add a Makefile and use it to build and install. Use the makefile 1.0
portgroup to use the right compiler, cflags, ldflags, and arch flags,
and to add a universal variant. Since this changes how it builds,
increase the revision.

Modernize checksums.

Indicate the license.

Switch the homepage to something that exists.
2021-05-11 20:29:41 -05:00

18 lines
435 B
Makefile

PREFIX ?= /usr/local
DESTDIR ?=
all: ttcp
ttcp: ttcp.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
install: ttcp ttcp.1 README
install -d $(DESTDIR)$(PREFIX)/bin
install -m 755 ttcp $(DESTDIR)$(PREFIX)/bin
install -d $(DESTDIR)$(PREFIX)/share/man/man1
install -m 644 ttcp.1 $(DESTDIR)$(PREFIX)/share/man/man1
install -d $(DESTDIR)$(PREFIX)/share/doc/ttcp
install -m 644 README $(DESTDIR)$(PREFIX)/share/doc/ttcp
.PHONY: all install