blob: 3618620900940670965f62644e4fed6b9bbbcab1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$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)
|