blob: 12d5a5717fd6e4e0203a08e2ad2be054c5911275 (
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
29
30
31
32
33
34
35
|
$NetBSD: patch-aa,v 1.3 2009/02/19 16:36:26 joerg Exp $
--- Makefile.orig Wed Jun 21 17:00:57 2000
+++ Makefile Tue Sep 23 10:15:48 2003
@@ -18,22 +18,23 @@
# dogboy@photodex.com!
INSTALL = /usr/bin/install -c
-OBJS = dog.o getopt.o getopt1.o
-CFLAGS = -O3 -Wall
+#HF#OBJS = dog.o getopt.o getopt1.o
+OBJS += dog.o # NetBSD (and about any other Unix) has getopt in libc :-)
+#CFLAGS = -O3 -Wall
-prefix = /usr/local
+prefix = ${PREFIX}
bindir = ${prefix}/bin
mandir = ${prefix}/man
%.o: %.c
- gcc ${CFLAGS} -c $< -o $@
+ $(CC) ${CFLAGS} -c $< -o $@
dog: ${OBJS}
- gcc ${CFLAGS} -o dog ${OBJS}
+ $(CC) ${CFLAGS} -o dog ${OBJS} ${LDFLAGS}
install: dog
- $(INSTALL) -m 644 dog.1 ${mandir}/man1
- $(INSTALL) -m 755 dog ${bindir}
+ $(BSD_INSTALL_MAN) dog.1 ${DESTDIR}${mandir}/man1/dog.1
+ $(BSD_INSTALL_PROGRAM) dog ${DESTDIR}${bindir}/dog
clean:
rm -f dog *.o *~
|