pkgsrc/net/cidr/patches/patch-aa

28 lines
563 B
Text

$NetBSD: patch-aa,v 1.2 2004/11/03 10:57:54 grant Exp $
--- Makefile.orig 2001-07-03 17:23:23.000000000 +1000
+++ Makefile
@@ -1,10 +1,22 @@
# Makefile for cidr
# 5/9/2000
+INSTALL_PROGRAM = $(BSD_INSTALL_PROGRAM)
+INSTALL_MAN = $(BSD_INSTALL_MAN)
+
+BINDIR = $(PREFIX)/bin
+MANDIR = $(PREFIX)/man/man1
+
OBJS = cidr.o
+all: cidr
+
cidr: $(OBJS)
- gcc -Wall -o cidr cidr.c
+ $(CC) $(CFLAGS) -o cidr $(OBJS) $(LIBS)
clean:
rm $(OBJS) cidr
+
+install: cidr
+ $(INSTALL_PROGRAM) cidr $(DESTDIR)$(BINDIR)
+ $(INSTALL_MAN) cidr.1 $(DESTDIR)$(MANDIR)